3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <html> <head> <script type='text/javascript' src='/wp-includes/js/jquery/jquery.js?ver=1.8.3'></script> <script type='text/javascript' src='https://www.example.com/leave-this-alone'></script> <script language="JavaScript"> window.moveTo(0,0); window.resizeTo(screen.width,screen.height); </script> </head> </html> HTML; $workingUrl = 'https://www.example.com'; $dom = new DOMDocument; $dom->loadHTML($html, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $xpath = new DOMXPath($dom); foreach ($xpath->query("//script[@src and not(starts-with(@src,'http'))]") as $node) { $node->setAttribute('src', $workingUrl); } 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.3.60.0110.01117.13
8.3.50.0040.01116.71
8.3.40.0070.01019.04
8.3.30.0120.00319.04
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0090.00026.16
8.2.180.0150.00425.92
8.2.170.0120.00619.19
8.2.160.0100.01022.96
8.2.150.0070.00025.66
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0110.00721.32
8.2.110.0040.00821.37
8.2.100.0130.00018.16
8.2.90.0060.00318.26
8.2.80.0060.00318.30
8.2.70.0000.00818.30
8.2.60.0070.00318.41
8.2.50.0030.00518.10
8.2.40.0080.00022.69
8.2.30.0090.00018.46
8.2.20.0000.00818.41
8.2.10.0040.00419.52
8.2.00.0040.00419.60
8.1.280.0110.00725.92
8.1.270.0080.00023.99
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0090.00024.09
8.1.230.0040.01121.34
8.1.220.0000.00820.96
8.1.210.0040.00419.15
8.1.200.0030.00617.72
8.1.190.0040.00417.48
8.1.180.0050.00318.10
8.1.170.0040.00419.12
8.1.160.0030.00619.29
8.1.150.0040.00419.11
8.1.140.0040.00419.26
8.1.130.0030.00320.43
8.1.120.0040.00417.87
8.1.110.0040.00417.63
8.1.100.0000.00717.79
8.1.90.0040.00417.85
8.1.80.0040.00417.85
8.1.70.0000.00717.85
8.1.60.0050.00317.91
8.1.50.0040.00417.80
8.1.40.0000.00817.80
8.1.30.0000.00817.97
8.1.20.0000.00818.05
8.1.10.0040.00417.83
8.1.00.0080.00017.80
8.0.300.0040.00420.19
8.0.290.0080.00016.85
8.0.280.0030.00318.74
8.0.270.0030.00318.31
8.0.260.0060.00018.81
8.0.250.0000.00717.39
8.0.240.0000.00617.39
8.0.230.0000.00717.37
8.0.220.0040.00417.32
8.0.210.0040.00417.35
8.0.200.0030.00517.25
8.0.190.0040.00417.38
8.0.180.0000.00717.35
8.0.170.0060.00317.27
8.0.160.0030.00517.29
8.0.150.0040.00417.25
8.0.140.0000.00717.30
8.0.130.0030.00313.73
8.0.120.0030.00717.20
8.0.110.0000.00717.32
8.0.100.0030.00517.21
8.0.90.0000.00717.34
8.0.80.0050.01217.24
8.0.70.0030.00517.31
8.0.60.0000.00717.14
8.0.50.0050.00317.27
8.0.30.0110.01717.18
8.0.20.0190.00617.77
8.0.10.0240.00517.61
8.0.00.0160.00817.50
7.4.330.0060.00015.55
7.4.320.0030.00316.97
7.4.300.0000.00716.81
7.4.290.0030.00316.85
7.4.280.0030.00516.89
7.4.270.0030.00316.95
7.4.260.0050.00013.62
7.4.250.0000.00716.86
7.4.240.0000.00716.86
7.4.230.0000.00716.91
7.4.220.0020.00516.98
7.4.210.0020.01316.96
7.4.200.0000.00717.06
7.4.160.0130.01016.78
7.4.150.0190.00616.94
7.4.140.0180.01116.88
7.4.130.0180.00616.80
7.4.120.0140.01116.80
7.4.110.0180.00716.96
7.4.100.0220.00416.92
7.4.90.0190.00516.64
7.4.80.0200.00616.71
7.4.70.0110.01616.90
7.4.60.0140.01016.84
7.4.50.0200.00616.89
7.4.40.0190.00516.73
7.4.30.0230.00416.73
7.4.20.0240.00216.91
7.4.10.0190.00516.78
7.4.00.0030.01716.96
7.3.330.0050.00316.69
7.3.320.0000.00513.39
7.3.310.0000.00716.67
7.3.300.0040.00416.59
7.3.290.0050.01016.62
7.3.270.0180.00716.70
7.3.260.0170.00716.82
7.3.250.0190.00616.87
7.3.240.0160.00916.82
7.3.230.0270.00016.86
7.3.220.0160.01016.99
7.3.210.0160.01016.75
7.3.200.0210.00416.63
7.3.190.0150.01116.59
7.3.180.0170.01016.73
7.3.170.0160.01016.59
7.3.160.0200.00516.63
7.3.150.0190.00716.91
7.3.140.0100.00716.63
7.3.130.0080.01216.68
7.3.120.0040.01516.63
7.3.110.0130.00716.91
7.3.100.0170.00316.77
7.3.90.0130.00716.48
7.3.80.0110.01116.82
7.3.70.0040.01616.60
7.3.60.0080.01216.57
7.3.50.0100.01016.72
7.3.40.0160.00016.73
7.3.30.0080.00816.82
7.3.20.0110.00616.63
7.3.10.0120.00616.75
7.3.00.0120.00616.73

preferences:
58.66 ms | 400 KiB | 5 Q