3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <div> <p> some text <a href="../plugins/re_records/somefile.php?page=something&id=345">find_me_1</a></p> <br> <a href="../plugins/re_records/somefile.php?page=something&id=99">find_me_2</a> <div> <div> <a href="example.com?page=something&id=55">don't even think about it!</a> <a href="../plugins/re_records/somefile.php?page=something&id=90210">find_me_3</a> </div> </div> </div> HTML; $hrefStartsWith = '../plugins/re_records/somefile.php?page=something&id='; $dom = new DOMDocument(); libxml_use_internal_errors(true); $dom->loadHTML($html, LIBXML_HTML_NODEFDTD | LIBXML_HTML_NOIMPLIED); $xpath = new DOMXPath($dom); foreach ($xpath->query("//a[starts-with(@href, '$hrefStartsWith')]") as $a) { $a->setAttribute('href', '/map/' . $a->nodeValue); } echo $dom->saveHTML();

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.0100.00816.76
8.5.00.0080.01320.22
8.4.150.0020.00014.05
8.4.140.0090.01317.84
8.4.130.0090.01218.07
8.4.120.0130.00724.29
8.4.110.0150.00818.54
8.4.100.0130.00719.26
8.4.90.0150.00519.12
8.4.80.0150.00521.20
8.4.70.0100.00518.63
8.4.60.0080.00319.05
8.4.50.0090.00918.04
8.4.40.0090.00618.00
8.4.30.0100.01020.95
8.4.20.0170.00718.27
8.4.10.0070.01421.49
8.3.280.0120.00918.79
8.3.270.0090.01217.04
8.3.260.0050.00417.18
8.3.250.0110.01018.98
8.3.240.0120.00717.48
8.3.230.0110.00917.12
8.3.220.0090.00819.41
8.3.210.0080.00317.33
8.3.200.0040.00517.18
8.3.190.0070.00717.48
8.3.180.0030.00517.08
8.3.170.0060.01319.16
8.3.160.0100.01018.68
8.3.150.0060.01220.92
8.3.140.0130.00316.95
8.3.130.0060.00918.93
8.3.120.0000.00819.51
8.3.110.0000.00718.91
8.3.100.0140.00717.00
8.3.90.0030.00726.77
8.3.80.0030.00617.25
8.3.70.0040.01116.88
8.3.60.0090.00617.25
8.3.50.0110.00824.59
8.3.40.0070.01122.36
8.3.30.0090.01219.26
8.3.20.0070.00324.18
8.3.10.0040.01124.66
8.3.00.0080.00026.16
8.2.290.0130.00621.18
8.2.280.0090.01018.46
8.2.270.0160.00317.45
8.2.260.0000.00819.21
8.2.250.0060.00318.68
8.2.240.0080.00017.14
8.2.230.0060.00320.94
8.2.220.0160.00324.06
8.2.210.0040.00426.77
8.2.200.0030.00616.75
8.2.190.0100.00716.88
8.2.180.0030.01325.92
8.2.170.0090.00619.30
8.2.160.0150.00622.96
8.2.150.0000.00925.66
8.2.140.0000.00724.66
8.2.130.0000.00826.16
8.2.120.0040.00420.20
8.2.110.0090.00019.76
8.2.100.0060.00617.97
8.2.90.0000.00818.09
8.2.80.0040.00419.36
8.2.70.0040.00417.84
8.2.60.0000.00819.73
8.2.50.0040.00418.05
8.2.40.0040.00420.32
8.2.30.0040.00418.34
8.2.20.0000.00818.43
8.2.10.0040.00419.67
8.2.00.0000.00719.57
8.1.330.0130.00622.37
8.1.320.0110.00916.48
8.1.310.0040.01417.03
8.1.300.0000.00916.48
8.1.290.0070.00330.84
8.1.280.0070.01025.92
8.1.270.0040.00424.35
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0070.01023.00
8.1.230.0090.00321.25
8.1.220.0080.00018.14
8.1.210.0000.00819.01
8.1.200.0080.00017.72
8.1.190.0080.00017.60
8.1.180.0080.00018.10
8.1.170.0000.00819.10
8.1.160.0030.00519.25
8.1.150.0050.00219.26
8.1.140.0000.00719.20
8.1.130.0040.00420.60
8.1.120.0040.00417.89
8.1.110.0000.00917.82
8.1.100.0000.00817.91
8.1.90.0070.00017.74
8.1.80.0030.00517.76
8.1.70.0000.00717.88
8.1.60.0030.00617.86
8.1.50.0030.00617.96
8.1.40.0000.00817.93
8.1.30.0040.00417.96
8.1.20.0040.00417.98
8.1.10.0040.00417.95
8.1.00.0000.00817.80
8.0.300.0000.00820.35
8.0.290.0040.00417.25
8.0.280.0030.00318.80
8.0.270.0000.00718.41
8.0.260.0070.00018.98
8.0.250.0050.00317.32
8.0.240.0050.00317.43
8.0.230.0000.00717.37
8.0.220.0000.00717.23
8.0.210.0070.00017.33
8.0.200.0050.00317.33
8.0.190.0080.00017.46
8.0.180.0000.00717.37
8.0.170.0040.00417.28
8.0.160.0000.00717.26
8.0.150.0000.00817.14
8.0.140.0040.00717.23
8.0.130.0000.00613.83
8.0.120.0000.00817.24
8.0.110.0020.00517.22
8.0.100.0000.00717.26
8.0.90.0000.00817.12
8.0.80.0070.00817.26
8.0.70.0000.00717.16
8.0.60.0050.00317.16
8.0.50.0040.00417.08
8.0.30.0110.00617.69
8.0.20.0150.00417.43
8.0.10.0060.00317.43
8.0.00.0110.00716.92
7.4.330.0000.00515.55
7.4.320.0070.00016.98
7.4.300.0040.00416.85
7.4.290.0080.00016.73
7.4.280.0030.00716.80
7.4.270.0030.00516.96
7.4.260.0050.00013.72
7.4.250.0000.00716.78
7.4.240.0030.00316.81
7.4.230.0030.00316.82
7.4.220.0020.00616.70
7.4.210.0050.01016.88
7.4.200.0070.00016.96
7.4.130.0110.00716.55
7.4.120.0060.01216.70
7.4.110.0060.01216.84
7.4.100.0090.00916.75
7.4.90.0170.00316.68
7.4.80.0090.00916.68
7.4.70.0070.01116.75
7.4.60.0120.00816.80
7.4.50.0060.01117.09
7.4.40.0040.01516.93
7.4.30.0120.00716.74
7.4.20.0200.00016.98
7.4.10.0120.00616.74
7.4.00.0100.01416.79
7.3.330.0050.00216.70
7.3.320.0000.00613.61
7.3.310.0050.00316.63
7.3.300.0000.00716.61
7.3.290.0100.00616.70
7.3.260.0130.01316.76
7.3.250.0060.01316.80
7.3.240.0120.00916.60
7.3.230.0100.01016.82
7.3.220.0120.00616.71
7.3.210.0130.00316.70
7.3.200.0090.00916.95
7.3.190.0100.00716.66
7.3.180.0180.00016.76
7.3.170.0030.01316.46
7.3.160.0090.00916.83
7.3.150.0110.01116.58
7.3.140.0090.01716.70
7.3.130.0160.00316.51
7.3.120.0030.01316.79
7.3.110.0100.00716.80
7.3.100.0100.00716.83
7.3.90.0060.01116.62
7.3.80.0060.01816.59
7.3.70.0130.01016.55
7.3.60.0240.00016.76
7.3.50.0080.01116.67
7.3.40.0170.00316.67
7.3.30.0130.00416.56
7.3.20.0150.00816.66
7.3.10.0060.01316.67
7.3.00.0170.00316.56

preferences:
137.17 ms | 403 KiB | 5 Q