3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <body> <form name="mainform" method="POST" action="baz" class="all"> <input type="submit" value="" style="position:absolute;top:-9999px;left:-9999px;" name="apply"/> <p>foo</p> <div class="bar"> .. </div> <br/> <div class="onPageTabsBox"> <ul class="tabs onPageTabs"> ... </ul> </div> <table id="baz"> <tr class="thead"> ... </tr> </table> <div id="uiScroll"> <table id="bla"> <tr class="showif_in"> ... </tr> ... <tr class="showif_out"> <td class="call_out" title="outbound call" datalabel="29.12.19 11:13"/> <td>29.12.19 11:13</td> <td title="Doe, John (privat) = 0123456789" datalabel="Name / Rufnummer"> <a href=" " onclick="return onDial('0123456789');">Doe, John (privat)</a> </td> <td datalabel="foo">bar</td> <td title="987654 (Internet)" datalabel="own number">987654</td> <td class="duration" data-timestr="0:02" datalabel="duration">2 Min</td> <td class="btncolumn"> ... </td> </tr> <tr class="showif_out"> ... </tr> </table> </div> </form> </body> XML; $dom = simplexml_load_string($xml); $rowTitleAttrs = $dom->xpath('//tr[@class="showif_out"]/td/@title'); $phoneNumbers = []; foreach ($rowTitleAttrs as $rowTitleAttr) { if (preg_match('/(?<= = )(?<phoneNumber>.*?)$/', $rowTitleAttr->title, $matches)) { $phoneNumbers[] = $matches['phoneNumber']; } } print_r($phoneNumbers);

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.00.0110.01220.63
8.4.150.0020.00114.05
8.4.140.0100.01218.20
8.4.130.0130.00718.30
8.4.120.0060.00720.95
8.4.110.0100.00319.38
8.4.100.0020.00818.34
8.4.90.0090.00621.11
8.4.80.0050.00318.27
8.4.70.0070.00320.19
8.4.60.0140.00719.99
8.4.50.0130.00821.03
8.4.40.0150.00620.05
8.4.30.0060.01520.86
8.4.20.0130.00718.69
8.4.10.0060.00319.83
8.3.280.0130.00819.01
8.3.270.0150.00417.37
8.3.260.0120.00817.12
8.3.250.0090.00319.40
8.3.240.0060.00217.41
8.3.230.0090.00316.85
8.3.220.0050.00619.40
8.3.210.0080.00717.09
8.3.200.0130.00517.19
8.3.190.0080.00317.71
8.3.180.0100.00819.49
8.3.170.0110.00717.67
8.3.160.0060.00317.41
8.3.150.0130.00617.05
8.3.140.0050.00518.93
8.3.130.0080.00319.10
8.3.120.0030.00621.02
8.3.110.0030.00620.94
8.3.100.0090.00619.15
8.3.90.0080.00426.77
8.3.80.0100.00019.36
8.3.70.0170.00317.25
8.3.60.0070.00717.13
8.3.50.0120.00323.99
8.3.40.0090.00619.47
8.3.30.0090.00919.21
8.3.20.0060.00321.27
8.3.10.0050.00322.38
8.3.00.0050.00322.23
8.2.290.0110.00916.88
8.2.280.0110.00816.96
8.2.270.0040.00419.05
8.2.260.0040.00417.78
8.2.250.0040.00418.90
8.2.240.0050.00517.57
8.2.230.0070.01022.58
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0060.00318.88
8.2.190.0150.00617.26
8.2.180.0040.01118.80
8.2.170.0090.00622.96
8.2.160.0060.01222.63
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00026.16
8.2.110.0050.00519.83
8.2.100.0060.00618.53
8.2.90.0060.00318.59
8.2.80.0080.00018.25
8.2.70.0040.00418.50
8.2.60.0030.00618.09
8.2.50.0040.00418.66
8.2.40.0060.00320.02
8.2.30.0000.00719.65
8.2.20.0060.00318.46
8.2.10.0000.00719.71
8.2.00.0040.00419.54
8.1.330.0070.01116.62
8.1.320.0100.00916.80
8.1.310.0110.00716.86
8.1.300.0080.00818.93
8.1.290.0030.00630.84
8.1.280.0080.00825.92
8.1.270.0090.00621.44
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0080.00322.84
8.1.230.0110.00421.26
8.1.220.0040.00418.29
8.1.210.0050.00319.36
8.1.200.0030.00717.86
8.1.190.0060.00317.85
8.1.180.0050.00318.10
8.1.170.0090.00018.19
8.1.160.0000.00821.17
8.1.150.0000.00719.13
8.1.140.0000.00821.24
8.1.130.0000.00722.51
8.1.120.0040.00418.03
8.1.110.0070.00317.82
8.1.100.0040.00418.10
8.1.90.0000.00818.10
8.1.80.0060.00317.89
8.1.70.0040.00418.02
8.1.60.0030.00918.17
8.1.50.0030.00617.98
8.1.40.0030.00517.89
8.1.30.0080.00018.22
8.1.20.0120.00018.23
8.1.10.0040.00417.94
8.1.00.0040.00418.12
8.0.300.0070.00020.36
8.0.290.0000.00817.38
8.0.280.0030.00318.84
8.0.270.0040.00418.68
8.0.260.0060.00020.53
8.0.250.0040.00417.66
8.0.240.0030.00717.58
8.0.230.0070.00017.64
8.0.220.0040.00417.61
8.0.210.0000.00717.55
8.0.200.0060.00017.45
8.0.190.0000.00717.60
8.0.180.0060.00317.39
8.0.170.0080.00017.62
8.0.160.0040.00517.48
8.0.150.0040.00417.32
8.0.140.0030.00517.43
8.0.130.0000.00613.96
8.0.120.0040.00417.28
8.0.110.0040.00417.63
8.0.100.0030.00517.49
8.0.90.0030.00617.46
8.0.80.0100.00917.55
8.0.70.0070.00017.49
8.0.60.0080.00017.57
8.0.50.0070.00017.54
8.0.30.0140.01017.45
8.0.20.0090.01017.83
8.0.10.0040.00417.59
8.0.00.0170.00317.52
7.4.330.0050.00017.05
7.4.320.0000.00717.26
7.4.300.0030.00317.18
7.4.290.0030.00617.27
7.4.280.0000.00817.05
7.4.270.0030.00716.94
7.4.260.0000.00513.89
7.4.250.0030.00317.12
7.4.240.0080.00017.19
7.4.230.0070.00016.99
7.4.220.0020.00617.22
7.4.210.0080.00917.24
7.4.200.0000.00717.11
7.4.130.0060.01817.10
7.4.120.0160.00017.10
7.4.110.0070.01017.26
7.4.100.0180.00617.21
7.4.90.0100.00717.15
7.4.80.0090.00819.39
7.4.70.0100.00617.07
7.4.60.0080.00817.29
7.4.50.0030.00917.12
7.4.40.0100.00617.11
7.4.10.0060.00915.23
7.4.00.0000.02015.34
7.3.330.0050.00316.72
7.3.320.0050.00013.82
7.3.310.0040.00416.87
7.3.300.0000.00716.89
7.3.290.0070.00716.84
7.3.260.0090.00916.93
7.3.240.0080.00917.08
7.3.230.0060.01216.85
7.3.210.0130.00417.02
7.3.200.0100.00717.03
7.3.190.0160.00717.16
7.3.180.0100.00716.89
7.3.170.0100.00716.88
7.3.160.0130.01016.99
7.3.130.0060.01015.07
7.3.120.0060.01215.45
7.3.110.0150.00015.18
7.3.100.0080.00715.29
7.3.90.0090.00815.11
7.3.80.0070.00815.05
7.3.70.0150.00515.15
7.3.60.0060.00915.33
7.3.50.0030.01315.06
7.3.40.0080.00515.13
7.3.30.0060.00915.24
7.3.20.0100.01015.30
7.3.10.0110.00715.19
7.3.00.0110.00715.15
7.2.330.0090.00917.22
7.2.320.0100.01417.13
7.2.310.0100.00917.19
7.2.300.0160.01017.25
7.2.290.0080.01017.29
7.2.260.0080.00915.22
7.2.250.0060.00915.37
7.2.240.0090.00615.47
7.2.230.0230.00015.48
7.2.220.0090.00615.56
7.2.210.0120.00315.36
7.2.200.0120.00315.20
7.2.190.0080.01115.39
7.2.180.0070.00715.29
7.2.170.0050.01415.34
7.2.160.0090.00915.51
7.2.150.0070.01015.38
7.2.140.0100.00715.16
7.2.130.0130.00815.57
7.2.120.0070.01015.39
7.2.110.0090.00615.47
7.2.100.0040.01215.62
7.2.90.0070.00715.41
7.2.80.0090.00615.50
7.2.70.0060.00915.59
7.2.60.0080.00815.46
7.2.50.0070.01115.60
7.2.40.0060.01215.57
7.2.30.0060.01215.42
7.2.20.0110.00815.38
7.2.10.0090.00915.31
7.2.00.0080.01015.61

preferences:
29.2 ms | 403 KiB | 5 Q