Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100666 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12798 invoked from network); 16 Sep 2017 09:44:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Sep 2017 09:44:47 -0000 Authentication-Results: pb1.pair.com header.from=ilija.tovilo@me.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ilija.tovilo@me.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain me.com designates 17.142.194.252 as permitted sender) X-PHP-List-Original-Sender: ilija.tovilo@me.com X-Host-Fingerprint: 17.142.194.252 pv33p00im-asmtp003.me.com Received: from [17.142.194.252] ([17.142.194.252:19482] helo=pv33p00im-asmtp003.me.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/6D-19300-D82FCB95 for ; Sat, 16 Sep 2017 05:44:47 -0400 Received: from process-dkim-sign-daemon.pv33p00im-asmtp003.me.com by pv33p00im-asmtp003.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0OWD00N009NRPX00@pv33p00im-asmtp003.me.com> for internals@lists.php.net; Sat, 16 Sep 2017 09:44:39 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=04042017; t=1505555079; bh=+T8ZPhoBRz3fy1M8mNkARcgQlDtW4YYnW96N7jIN4Ns=; h=Date:From:To:Message-id:Subject:MIME-version:Content-type; b=TEEA2kQ0kwDpfykjIh5iElYIzgaVWyP+/1pkMBjMGFrAeUGliKAgbhYt+jNeSX4FA j/4opQ0Yn4d7a6Bk7baTnzSsDPcVMFKkREbBRdiAEszaoU+d3uqcFr6WHyF7U3KM/0 i9793ntwc1SO9ugPRETwjAzgqlid8vK/ae7Qc/T06vE52yMY9p+QhCty5lLO1XY8FR gcCRWIC33GkgWihBvh+M0hQ6sVh8YQUiUwgTLih1QjNUfxeXB02xosdSFwkGCpW+aJ 1PfpvBsJV7+oHsMayMQvvNL+L6kX1BM8nCOlz6+sj9XqgiGmzOqBhlf2Y6kLxnpHL/ PgAhBTIXbWWhg== Received: from icloud.com ([127.0.0.1]) by pv33p00im-asmtp003.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0OWD00LDG9QBA600@pv33p00im-asmtp003.me.com>; Sat, 16 Sep 2017 09:44:39 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-16_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=74 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1709160148 Date: Sat, 16 Sep 2017 11:44:22 +0200 To: internals@lists.php.net, "=?utf-8?Q?lists=40rhsoft.net?=" Message-ID: <7005b428-1615-46c5-a2aa-a7406c17eeeb@Spark> In-reply-to: References: <097578bf-ab74-44cf-a465-dc6fdd50930f@Spark> X-Readdle-Message-ID: 7005b428-1615-46c5-a2aa-a7406c17eeeb@Spark MIME-version: 1.0 Content-type: multipart/alternative; boundary=59bcf280_66334873_7ae1 Subject: Re: [PHP-DEV] [RFC] Deprecate the extract function in PHP 7.3 From: ilija.tovilo@me.com --59bcf280_66334873_7ae1 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dude, calm down. This was a request for feedback. As other people have pointed out before = it may not be the best idea to remove it since there=E2=80=99s no good wa= y to write the equivalent code in PHP. No reason to be rude. On 16 Sep 2017, 11:42 +0200, lists=40rhsoft.net , wro= te: > > > Am 15.09.2017 um 20:27 schrieb Arvids Godjuks: > > well, basically, none. Results are from a Q6600 machine and under win= dows, > > so your mileage probably gonna be quite better :) > > well, and now implement the EXTR=5FSKIP in PHP code - that becomes a ug= ly > piece of code and that only because someone likes to remove a already > existing function nobody is forced to use=3F > > sadly i am not allowed to say what i think in public... > > > C:=5CUsers=5Cpsihius=5CDocuments=5Cweb>php -v > > PHP 7.1.5 (cli) (built: May 9 2017 19:48:36) ( NTS MSVC14 (Visual C++= > > 2015) x64 ) > > Copyright (c) 1997-2017 The PHP Group > > Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies > > C:=5CUsers=5Cpsihius=5CDocuments=5Cweb>php -d memory=5Flimit=3D-1 tes= t.php > > 6.884626150131226 - Creating arrays > > 2.035606861114502 - foreach > > 2.128609180450439 - extract > > > > The code: > > > > define('ITERATIONS', 10000000); > > > > =24=5F=5Ftime =3D microtime(true); > > > > =24=5F=5Farray =3D =24=5F=5Farray2 =3D =5B=5D; > > for (=24=5F=5Fi =3D 0; =24=5F=5Fi < ITERATIONS; ++=24=5F=5Fi) =7B > > =24=5F=5Farray=5B'a'.=24=5F=5Fi=5D =3D =24=5F=5Fi; > > =24=5F=5Farray2=5B'b'.=24=5F=5Fi=5D =3D =24=5F=5Fi; > > =7D > > echo number=5Fformat(microtime(true) - =24=5F=5Ftime, 15, '.', ''), P= HP=5FEOL; > > > > =24=5F=5Ftime =3D microtime(true); > > foreach (=24=5F=5Farray as =24=5F=5Fkey =3D> =24=5F=5Fvariable) =7B > > =24=24=5F=5Fkey =3D =24=5F=5Fvariable; > > =7D > > echo number=5Fformat(microtime(true) - =24=5F=5Ftime, 15, '.', ''), P= HP=5FEOL; > > > > =24=5F=5Ftime =3D microtime(true); > > foreach (=24=5F=5Farray2 as =24=5F=5Fkey =3D> =24=5F=5Fvariable) =7B > > =24=24=5F=5Fkey =3D =24=5F=5Fvariable; > > =7D > > echo number=5Fformat(microtime(true) - =24=5F=5Ftime, 15, '.', ''), P= HP=5FEOL; > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --59bcf280_66334873_7ae1--