3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = <<<EOD <td class="useragent"><a href="/useragents/parse/627832-chrome-windows-blink">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36</a></td> EOD; $domDocument = new DOMDocument; $domDocument->loadHTML($text, LIBXML_HTML_NOIMPLIED|LIBXML_HTML_NODEFDTD); $xpath = new DOMXPath($domDocument); $nodes = $xpath->query('//td[@class="useragent"]/a'); $res = []; foreach($nodes as $txt) { array_push($res, $txt->textContent); } print_r($res);

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.70.0110.01116.97
8.3.60.0040.01518.68
8.3.50.0150.00318.45
8.3.40.0040.01119.01
8.3.30.0070.00718.96
8.3.20.0040.00420.40
8.3.10.0070.00023.95
8.3.00.0080.00019.91
8.2.190.0000.01618.67
8.2.180.0040.01117.02
8.2.170.0120.00919.33
8.2.160.0070.00722.96
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0030.01226.16
8.2.120.0060.00321.43
8.2.110.0090.00021.42
8.2.100.0070.01018.28
8.2.90.0040.00420.98
8.2.80.0030.00618.29
8.2.70.0000.00918.18
8.2.60.0080.00018.47
8.2.50.0060.00318.47
8.2.40.0040.00420.93
8.2.30.0000.00719.57
8.2.20.0000.00718.28
8.2.10.0030.00618.46
8.2.00.0000.00718.55
8.1.280.0070.01025.92
8.1.270.0070.00020.54
8.1.260.0150.00026.35
8.1.250.0140.00028.09
8.1.240.0090.00322.38
8.1.230.0080.00423.02
8.1.220.0060.00318.14
8.1.210.0030.00519.25
8.1.200.0030.00617.60
8.1.190.0060.00317.48
8.1.180.0050.00318.10
8.1.170.0050.00318.91
8.1.160.0000.00719.21
8.1.150.0060.00320.54
8.1.140.0030.00518.03
8.1.130.0070.00019.34
8.1.120.0040.00417.77
8.1.110.0030.00617.69
8.1.100.0050.00317.70
8.1.90.0050.00317.85
8.1.80.0040.00417.67
8.1.70.0090.00017.70
8.1.60.0040.00417.84
8.1.50.0030.00517.72
8.1.40.0080.00017.85
8.1.30.0040.00417.91
8.1.20.0040.00817.93
8.1.10.0040.00417.82
8.1.00.0000.00917.88
8.0.300.0040.00420.27
8.0.290.0060.00317.00
8.0.280.0040.00418.65
8.0.270.0000.00717.56
8.0.260.0030.00317.09
8.0.250.0070.00017.28
8.0.240.0040.00417.27
8.0.230.0070.00017.30
8.0.220.0000.00817.19
8.0.210.0000.00717.32
8.0.200.0060.00017.33
8.0.190.0060.00317.37
8.0.180.0000.00817.21
8.0.170.0040.00417.29
8.0.160.0040.00417.20
8.0.150.0040.00417.17
8.0.140.0080.00017.15
8.0.130.0030.00313.64
8.0.120.0050.00317.26
8.0.110.0000.00717.15
8.0.100.0100.00017.04
8.0.90.0030.00517.16
8.0.80.0070.01017.28
8.0.70.0080.00017.11
8.0.60.0000.00817.14
8.0.50.0030.00617.14
8.0.30.0100.00817.40
8.0.20.0080.01217.44
8.0.10.0000.00717.45
8.0.00.0060.01417.26
7.4.330.0000.00515.55
7.4.320.0070.00016.92
7.4.300.0000.00716.85
7.4.290.0040.00416.87
7.4.280.0030.00516.79
7.4.270.0000.01016.94
7.4.260.0070.00016.77
7.4.250.0030.00516.90
7.4.240.0000.00716.82
7.4.230.0000.00716.64
7.4.220.0070.00016.88
7.4.210.0110.00516.71
7.4.200.0050.00216.94
7.4.160.0020.01316.73
7.4.150.0140.00417.40
7.4.140.0120.00917.86
7.4.130.0040.01416.69
7.4.120.0070.01116.87
7.4.110.0130.00316.91
7.4.100.0100.00716.87
7.4.90.0140.01016.83
7.4.80.0130.00619.39
7.4.70.0190.00016.79
7.4.60.0030.01216.57
7.4.50.0030.01016.69
7.4.40.0070.01016.88
7.4.00.0040.00815.03
7.3.330.0000.00513.54
7.3.320.0070.00013.55
7.3.310.0040.00416.71
7.3.300.0070.00016.68
7.3.290.0120.00416.69
7.3.280.0110.00916.68
7.3.270.0150.03117.40
7.3.260.0080.00916.70
7.3.250.0090.00816.84
7.3.240.0100.00816.79
7.3.230.0070.01016.89
7.3.210.0030.01316.63
7.3.200.0160.00716.82
7.3.190.0100.00616.79
7.3.180.0030.01316.63
7.3.170.0090.00716.80
7.3.160.0120.00416.61
7.2.330.0120.00617.02
7.2.320.0070.01017.10
7.2.310.0110.01116.89
7.2.300.0130.00316.75
7.2.290.0070.01016.77
7.2.60.0040.00716.98
7.2.20.0030.01220.14
7.2.10.0000.01619.79
7.2.00.0060.00920.20
7.1.200.0060.00915.90
7.1.140.0060.00919.04
7.1.130.0030.01019.01
7.1.120.0090.01218.75
7.1.110.0090.00418.34
7.1.100.0000.01618.33
7.1.90.0090.00318.23
7.1.80.0070.01017.98
7.1.70.0060.00917.12
7.1.60.0200.01335.00
7.1.50.0150.01134.98
7.1.40.0140.01434.61
7.1.30.0210.00934.62
7.1.20.0190.00934.67
7.1.10.0040.01116.68
7.1.00.0030.01016.77

preferences:
19.18 ms | 401 KiB | 5 Q