3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = ' <table id="myTable"> <tbody> <tr> <td>08/20/18</td> <td> <a href="https://example.com/1a">Text 1 A</a> </td> <td> <a href="https://example.com/1b">Test 1 B</a> </td> </tr> <tr> <td>08/21/18</td> <td> <a href="https://example.com/2a">Text 2 A</a> </td> <td> <a href="https://example.com/2b">Test 2 B</a> </td> </tr> </tbody> </table> '; // setup DOMDocument $doc = new DOMDocument(); $doc->loadHTML('<?xml encoding="utf-8" ?>' . $html); $xpath = new DOMXPath($doc); // target table using xpath $results = $xpath->query("//*[@id='myTable']"); if ($results->length > 0) { // Results object print_r($results->item(0)); // Results nodeValue print_r($results->item(0)->nodeValue); }

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.0120.00718.89
8.5.00.0120.00920.29
8.4.150.0020.00014.05
8.4.140.0060.01418.17
8.4.130.0030.00618.08
8.4.120.0150.00620.73
8.4.110.0110.00922.93
8.4.100.0130.00818.03
8.4.90.0130.00818.15
8.4.80.0090.00918.37
8.4.70.0090.00617.96
8.4.60.0070.00419.41
8.4.50.0110.01018.09
8.4.40.0100.01018.09
8.4.30.0140.00719.11
8.4.20.0080.00318.86
8.4.10.0100.00018.06
8.3.280.0070.01318.68
8.3.270.0080.01216.60
8.3.260.0100.00717.02
8.3.250.0080.01119.21
8.3.240.0130.00716.98
8.3.230.0070.00416.88
8.3.220.0050.00417.59
8.3.210.0110.00617.12
8.3.200.0050.00416.97
8.3.190.0150.00517.48
8.3.180.0110.00717.00
8.3.170.0120.00619.09
8.3.160.0050.01419.28
8.3.150.0140.00317.61
8.3.140.0030.00517.49
8.3.130.0060.00318.67
8.3.120.0030.00619.30
8.3.110.0040.00418.78
8.3.100.0080.00416.63
8.3.90.0080.00026.77
8.3.80.0060.00318.93
8.3.70.0120.00316.88
8.3.60.0070.00718.56
8.3.50.0090.00418.19
8.3.40.0120.00318.95
8.3.30.0160.00018.87
8.3.20.0040.00419.56
8.3.10.0080.00023.86
8.3.00.0040.00422.83
8.2.290.0110.01020.81
8.2.280.0100.01320.33
8.2.270.0070.01117.65
8.2.260.0030.00616.86
8.2.250.0110.00417.14
8.2.240.0060.00319.35
8.2.230.0060.00320.94
8.2.220.0130.01324.06
8.2.210.0090.00626.77
8.2.200.0100.00018.86
8.2.190.0120.00317.13
8.2.180.0100.01317.00
8.2.170.0040.01122.96
8.2.160.0110.00421.51
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0040.00422.77
8.2.120.0030.00526.35
8.2.110.0060.00621.40
8.2.100.0000.01118.03
8.2.90.0000.00918.28
8.2.80.0040.00720.20
8.2.70.0000.00818.00
8.2.60.0000.00918.00
8.2.50.0060.00318.10
8.2.40.0060.00321.30
8.2.30.0040.00421.06
8.2.20.0090.00018.41
8.2.10.0080.00018.58
8.2.00.0040.00419.80
8.1.330.0110.00922.47
8.1.320.0140.00616.70
8.1.310.0070.01117.02
8.1.300.0150.00418.41
8.1.290.0080.00330.84
8.1.280.0090.00925.92
8.1.270.0130.01020.46
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0050.00522.89
8.1.230.0090.00321.29
8.1.220.0030.00518.16
8.1.210.0000.00819.46
8.1.200.0040.00417.72
8.1.190.0050.00317.60
8.1.180.0060.00318.10
8.1.170.0080.00019.28
8.1.160.0000.00819.34
8.1.150.0070.00019.15
8.1.140.0040.00419.34
8.1.130.0040.00421.08
8.1.120.0000.00817.71
8.1.110.0040.00417.74
8.1.100.0050.00317.66
8.1.90.0040.00417.79
8.1.80.0080.00017.80
8.1.70.0070.00017.71
8.1.60.0000.00817.92
8.1.50.0000.00917.86
8.1.40.0000.00817.73
8.1.30.0000.00917.89
8.1.20.0000.00918.00
8.1.10.0040.00417.98
8.1.00.0090.00017.77
8.0.300.0030.00620.40
8.0.290.0080.00017.00
8.0.280.0040.00418.82
8.0.270.0070.00017.64
8.0.260.0070.00020.64
8.0.250.0000.01017.20
8.0.240.0030.00317.35
8.0.230.0030.00317.36
8.0.220.0050.00217.11
8.0.210.0000.00717.28
8.0.200.0040.00417.19
8.0.190.0040.00417.29
8.0.180.0030.00517.16
8.0.170.0030.00617.32
8.0.160.0050.00317.20
8.0.150.0040.00417.23
8.0.140.0040.00417.26
8.0.130.0000.00613.64
8.0.120.0030.00517.16
8.0.110.0040.00417.25
8.0.100.0040.00417.19
8.0.90.0000.00717.21
8.0.80.0080.00917.21
8.0.70.0050.00216.99
8.0.60.0040.00417.16
8.0.50.0030.00617.30
8.0.30.0140.00317.52
8.0.20.0170.00817.49
8.0.10.0030.00617.28
8.0.00.0110.01117.19
7.4.330.0020.00215.55
7.4.320.0060.00016.96
7.4.300.0030.00316.87
7.4.290.0000.00916.88
7.4.280.0000.00816.75
7.4.270.0040.00416.85
7.4.260.0000.00816.94
7.4.250.0000.00716.72
7.4.240.0040.00416.95
7.4.230.0000.00716.73
7.4.220.0030.00517.00
7.4.210.0110.00416.96
7.4.200.0070.00016.77
7.4.160.0130.00616.83
7.4.140.0110.00917.86
7.4.130.0040.01316.95
7.4.120.0080.01116.82
7.4.110.0060.01216.77
7.4.100.0090.01516.86
7.4.90.0030.01516.72
7.4.80.0080.01219.39
7.4.70.0090.00916.77
7.4.60.0130.00316.78
7.4.50.0030.01416.44
7.4.40.0150.00516.89
7.4.00.0090.00814.97
7.3.330.0020.00213.34
7.3.320.0000.00713.39
7.3.310.0000.00716.41
7.3.300.0040.00416.52
7.3.290.0030.00316.64
7.3.280.0100.00716.75
7.3.260.0100.00816.75
7.3.240.0140.00716.78
7.3.230.0140.00416.94
7.3.210.0110.01116.79
7.3.200.0130.00316.98
7.3.190.0090.00916.63
7.3.180.0110.00516.66
7.3.170.0130.00316.57
7.3.160.0060.01016.68
7.3.120.0000.01514.86
7.3.110.0100.00614.76
7.3.100.0040.01114.87
7.3.90.0030.01014.85
7.3.80.0030.01314.69
7.3.70.0040.01814.88
7.3.60.0030.01314.81
7.3.50.0100.00714.95
7.3.40.0040.00714.70
7.3.30.0000.01114.64
7.3.20.0040.01116.90
7.3.10.0030.00616.78
7.3.00.0060.00316.79
7.2.330.0170.00316.99
7.2.320.0090.00616.89
7.2.310.0140.00416.80
7.2.300.0070.01416.92
7.2.290.0140.00316.82
7.2.250.0040.01215.06
7.2.240.0090.00915.25
7.2.230.0030.01415.05
7.2.220.0030.01115.08
7.2.210.0100.01015.28
7.2.200.0100.01314.96
7.2.190.0000.01715.19
7.2.180.0030.01015.00
7.2.170.0060.01015.13
7.2.90.1630.01014.87
7.2.80.1510.00014.80
7.2.70.1690.00715.28
7.2.60.1260.01315.39
7.2.50.2310.00715.09
7.2.40.1470.00715.02
7.2.30.1670.01315.24
7.2.20.1380.00314.86
7.2.10.1980.00714.94
7.2.00.1630.01614.93
7.1.330.0030.01316.06
7.1.320.0130.00315.77
7.1.310.0000.01316.09
7.1.300.0030.01015.82
7.1.290.0060.01016.11
7.1.280.0040.00715.89
7.1.270.0060.00615.93
7.1.260.0070.00415.84
7.1.210.3270.00714.21
7.1.200.2010.00614.06
7.1.190.2090.00314.14
7.1.180.1770.00714.09
7.1.170.2780.01013.95
7.1.160.1600.00314.02
7.1.150.1910.00314.27
7.1.140.1940.00714.11
7.1.130.1250.01314.16
7.1.120.1240.00914.08
7.1.110.1330.01014.35
7.1.100.1700.00314.04
7.1.90.1890.00713.76
7.1.80.2620.00314.13
7.1.70.1750.01014.02
7.1.60.2060.00632.10
7.1.50.3720.01032.01
7.1.40.4840.01031.69
7.1.30.4570.01031.88
7.1.20.3320.01032.12
7.1.10.2580.00714.03
7.1.00.1930.00713.99

preferences:
38.67 ms | 403 KiB | 5 Q