3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<'EOD' <body class="default-theme des-mat" style="background: rgb(255, 255, 255);"><div id="prpd"></div><div class="" id="mngb"><div id="gb" class="gb_T"><div class="gb_nb gb_Lg gb_R gb_Kg gb_Og gb_T" style="min-width: 241px;"><div class="gb_oe gb_R gb_Lg gb_Bg"><div class="gb_Q gb_R gb_S gb_Lg"><span class="_c1 ei_card_subtitle _c1">Name<br /> 713286XXX971 - 12021980</span>/div><div class="gb_Q gb_R"><a class="gb_P" data-pid="23" href="https://mail.google.com/mail/?authuser=0">Gmail</a></div><div class="gb_Q gb_R"><a class="gb_P" data-pid="2" href="https://www.google.com/imghp?hl=en&amp;authuser=0">Images</a></div></div><div class="gb_Ec gb_Lg gb_R" style="min-width: 120px;"><div class="gb_fa" id="gbsfw" style="background-color:#eee;min-width:376px"><iframe ng-non-bindable="" frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" style="width: 376px; height: 380px;" tabindex="0" vspace="0" width="100%" class="gb_9b" allowtransparency="true" aria-hidden="true" id="I0_1523641321551" name="I0_1523641321551" src="https://notifications.google.com/u/0/widget?sourceid=243&amp;hl=en&amp;origin=https%3A%2F%2Fwww.google.com&amp;uc=1&amp;usegapi=1&amp;jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.gapi.en.DgOlXVbWcXc.O%2Fm%3D__features__%2Frt%3Dj%2Fd%3D1%2Frs%3DAHpOoo-riybzrJ8O_UpInxWO1d1OWu1FtA#pid=243&amp;_methods=onError%2ConInfo%2ChideNotificationWidget%2CpostSharedMessage%2Creauth%2CsetNotificationWidgetHeight%2CsetNotificationWidgetSize%2CswitchTo%2CnavigateTo%2CsetNotificationText%2CsetNotificationAnimation%2CgetNotificationText%2CvalidateUser%2C_ready&amp;id=I0_1523641321551&amp;_gfid=I0_1523641321551&amp;parent=https%3A%2F%2Fwww.google.com&amp;pfname=&amp;rpctoken=13573360"></iframe></div><div class="gb_da gb_9c gb_R" id="gbwa"><div class="gb_Qc"><a class="gb_b gb_hc" href="https://www.google.com/intl/en/options/" title="Google apps" aria-expanded="false" role="button" tabindex="0"></a><div class="gb_wb"></div></body> EOD; $dom = new DOMDocument; $state = libxml_use_internal_errors(true); $dom->loadHTML($html); libxml_use_internal_errors($state); $xp = new DOMXPath($dom); $nodeList = $xp->query('normalize-space(//span[contains(@class, "_c1") and contains(@class, "ei_card_subtitle")]/br/following-sibling::text())'); foreach ($nodeList as $node) { echo sscanf($node->nodeValue, '%[0-9X]')[0], PHP_EOL; }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0110.00416.88
8.3.50.0120.00318.55
8.3.40.0140.00419.09
8.3.30.0120.00319.02
8.3.20.0080.00022.10
8.3.10.0070.00022.28
8.3.00.0080.00020.06
8.2.180.0120.00316.88
8.2.170.0110.00322.96
8.2.160.0090.00620.56
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0040.00419.68
8.2.120.0040.00426.35
8.2.110.0060.00321.50
8.2.100.0120.00018.16
8.2.90.0040.00418.03
8.2.80.0030.00719.39
8.2.70.0080.00018.00
8.2.60.0040.00417.75
8.2.50.0040.00418.47
8.2.40.0040.00420.84
8.2.30.0040.00419.81
8.2.20.0000.00818.39
8.2.10.0000.00818.53
8.2.00.0050.00218.59
8.1.280.0150.00025.92
8.1.270.0040.00424.01
8.1.260.0090.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00322.52
8.1.230.0090.00321.41
8.1.220.0050.00317.93
8.1.210.0050.00319.13
8.1.200.0090.00017.72
8.1.190.0030.00617.60
8.1.180.0040.00418.10
8.1.170.0000.00818.87
8.1.160.0000.00719.37
8.1.150.0080.00019.33
8.1.140.0000.00718.14
8.1.130.0000.00719.34
8.1.120.0080.00017.90
8.1.110.0000.00817.86
8.1.100.0000.00717.86
8.1.90.0040.00417.79
8.1.80.0040.00417.76
8.1.70.0070.00017.75
8.1.60.0090.00317.91
8.1.50.0000.00817.81
8.1.40.0000.00917.80
8.1.30.0000.00817.95
8.1.20.0060.00618.02
8.1.10.0000.00918.00
8.1.00.0030.00617.95
8.0.300.0060.00320.59
8.0.290.0040.00417.25
8.0.280.0000.00818.75
8.0.270.0040.00417.64
8.0.260.0070.00019.37
8.0.250.0030.00317.38
8.0.240.0040.00717.40
8.0.230.0000.00717.41
8.0.220.0040.00417.26
8.0.210.0000.00717.23
8.0.200.0000.00717.26
8.0.190.0050.00317.37
8.0.180.0000.00717.31
8.0.170.0000.01117.26
8.0.160.0000.00717.37
8.0.150.0000.00717.28
8.0.140.0000.00817.26
8.0.130.0000.00613.78
8.0.120.0040.00417.23
8.0.110.0000.00717.29
8.0.100.0000.00717.38
8.0.90.0070.00017.20
8.0.80.0070.00717.37
8.0.70.0070.00017.38
8.0.60.0040.00417.39
8.0.50.0040.00417.28
8.0.30.0090.01117.59
8.0.20.0120.00617.63
8.0.10.0050.00217.50
8.0.00.0080.01017.04
7.4.330.0030.00315.55
7.4.320.0000.00716.88
7.4.300.0070.00016.96
7.4.290.0030.00317.02
7.4.280.0080.00016.90
7.4.270.0000.00916.99
7.4.260.0060.00316.84
7.4.250.0000.00716.93
7.4.240.0040.00416.85
7.4.230.0030.00316.93
7.4.220.0040.00416.96
7.4.210.0070.01116.92
7.4.200.0000.00716.69
7.4.160.0060.01116.95
7.4.140.0100.00917.86
7.4.130.0100.01616.86
7.4.120.0120.00916.84
7.3.330.0030.00313.54
7.3.320.0040.00413.32
7.3.310.0070.00016.59
7.3.300.0000.00716.51
7.3.290.0070.00016.53
7.3.280.0070.00716.63
7.3.260.0090.00816.68
7.3.240.0070.00916.72
7.2.40.0730.01018.08

preferences:
54.52 ms | 401 KiB | 5 Q