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.5.10.0110.00716.95
8.5.00.0170.01020.45
8.4.150.0030.00014.05
8.4.140.0100.01117.77
8.4.130.0090.01119.03
8.4.120.0080.01219.76
8.4.110.0150.00622.82
8.4.100.0150.00618.39
8.4.90.0120.00820.79
8.4.80.0060.01319.04
8.4.70.0070.01320.88
8.4.60.0060.00318.90
8.4.50.0110.01122.66
8.4.40.0120.00619.86
8.4.30.0070.01417.90
8.4.20.0170.00319.76
8.4.10.0100.01019.18
8.3.280.0120.00721.21
8.3.270.0150.00817.07
8.3.260.0110.00916.94
8.3.250.0040.00416.89
8.3.240.0040.00716.86
8.3.230.0080.00417.05
8.3.220.0110.00719.31
8.3.210.0130.00718.84
8.3.200.0050.00417.04
8.3.190.0060.01317.82
8.3.180.0110.00917.16
8.3.170.0070.01117.80
8.3.160.0110.00720.86
8.3.150.0130.00718.53
8.3.140.0000.01017.54
8.3.130.0080.00018.93
8.3.120.0110.00019.57
8.3.110.0100.01020.94
8.3.100.0160.00024.06
8.3.90.0000.00826.77
8.3.80.0060.00618.93
8.3.70.0090.00616.88
8.3.60.0110.00416.88
8.3.50.0120.00518.57
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.290.0140.00616.79
8.2.280.0100.00519.00
8.2.270.0100.01017.61
8.2.260.0110.00717.16
8.2.250.0080.00018.84
8.2.240.0030.00619.15
8.2.230.0090.00022.58
8.2.220.0030.00637.54
8.2.210.0070.00726.77
8.2.200.0060.00316.88
8.2.190.0140.00716.88
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.330.0110.00716.46
8.1.320.0120.00816.44
8.1.310.0150.00318.68
8.1.300.0100.00018.11
8.1.290.0030.00630.84
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:
179.33 ms | 403 KiB | 5 Q