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 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]") as $node) { if (strpos($node->getAttribute('src'), 'http') !== 0) { $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.0130.00318.56
8.3.50.0040.01118.13
8.3.40.0160.00619.04
8.3.30.0040.01818.96
8.3.20.0090.00021.02
8.3.10.0070.00023.90
8.3.00.0080.00021.11
8.2.180.0150.00318.56
8.2.170.0070.00722.96
8.2.160.0030.01022.56
8.2.150.0140.00024.18
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0070.00021.02
8.2.110.0090.00020.90
8.2.100.0090.00318.16
8.2.90.0080.00019.95
8.2.80.0030.00518.41
8.2.70.0000.00818.30
8.2.60.0030.00518.47
8.2.50.0040.00418.10
8.2.40.0040.00419.67
8.2.30.0070.00019.57
8.2.20.0000.00818.38
8.2.10.0040.00419.18
8.2.00.0040.00419.79
8.1.280.0100.00625.92
8.1.270.0080.00021.07
8.1.260.0000.00826.35
8.1.250.0120.00628.09
8.1.240.0060.00321.28
8.1.230.0040.00718.14
8.1.220.0000.00818.14
8.1.210.0030.00618.77
8.1.200.0000.00917.72
8.1.190.0040.00417.61
8.1.180.0000.00818.10
8.1.170.0050.00318.96
8.1.160.0040.00420.56
8.1.150.0040.00419.24
8.1.140.0050.00219.15
8.1.130.0040.00420.45
8.1.120.0000.00717.77
8.1.110.0000.00717.79
8.1.100.0000.00717.82
8.1.90.0000.00817.84
8.1.80.0030.00517.76
8.1.70.0070.00017.69
8.1.60.0070.00317.95
8.1.50.0000.00917.93
8.1.40.0000.00917.85
8.1.30.0030.00617.93
8.1.20.0040.00417.96
8.1.10.0000.00917.83
8.1.00.0030.00517.90
8.0.300.0060.00321.77
8.0.290.0080.00017.25
8.0.280.0000.00818.80
8.0.270.0070.00017.17
8.0.260.0060.00020.52
8.0.250.0030.00517.29
8.0.240.0000.00717.31
8.0.230.0030.00317.39
8.0.220.0070.00017.30
8.0.210.0000.00717.25
8.0.200.0070.00017.27
8.0.190.0000.00817.30
8.0.180.0040.00417.21
8.0.170.0060.00317.25
8.0.160.0040.00417.39
8.0.150.0040.00417.15
8.0.140.0040.00417.25
8.0.130.0000.00713.78
8.0.120.0060.00317.39
8.0.110.0050.00317.16
8.0.100.0090.00017.24
8.0.90.0090.00017.34
8.0.80.0070.01317.20
8.0.70.0040.00417.39
8.0.60.0040.00417.16
8.0.50.0040.00417.46
8.0.30.0160.00917.71
8.0.20.0200.00717.21
8.0.10.0040.00417.46
8.0.00.0150.00917.22
7.4.330.0020.00215.55
7.4.320.0040.00416.96
7.4.300.0000.00616.98
7.4.290.0070.00016.95
7.4.280.0060.00316.98
7.4.270.0000.00817.02
7.4.260.0030.00316.90
7.4.250.0000.00816.73
7.4.240.0000.00716.96
7.4.230.0070.00016.73
7.4.220.0000.00716.82
7.4.210.0100.01016.98
7.4.200.0030.00516.89
7.4.130.0100.01016.81
7.4.120.0140.00316.80
7.4.110.0300.01716.80
7.4.100.0100.00716.84
7.4.90.0070.01017.02
7.4.80.0110.00619.39
7.4.70.0200.00316.94
7.4.60.0120.00616.70
7.4.50.0110.00016.52
7.4.40.0060.01217.00
7.4.00.0070.01015.37
7.3.330.0080.00016.57
7.3.320.0050.00013.48
7.3.310.0000.00716.57
7.3.300.0030.00316.67
7.3.290.0040.01116.61
7.3.280.0090.00616.55
7.3.260.0060.01116.77
7.3.240.0100.00916.75
7.3.230.0090.00916.91
7.3.210.0100.00616.80
7.3.200.0050.01116.60
7.3.190.0070.01416.59
7.3.180.0070.01316.73
7.3.170.0060.01016.88
7.3.160.0030.01316.84
7.3.120.0100.01014.82
7.3.110.0080.00814.74
7.3.100.0110.00814.84
7.3.90.0130.00314.92
7.3.80.0040.01414.93
7.3.70.0110.00615.05
7.3.60.0070.01114.69
7.3.50.0030.01114.94
7.3.40.0090.00714.82
7.3.30.0090.00914.90
7.3.20.0060.01214.93
7.3.10.0070.01115.02
7.3.00.0090.00615.14
7.2.330.0030.01417.11
7.2.320.0060.01017.07
7.2.310.0060.01117.12
7.2.300.0090.01216.89
7.2.290.0130.00717.12
7.2.240.0070.01015.10
7.2.230.0070.01015.42
7.2.220.0090.00615.06
7.2.210.0130.01015.20
7.2.200.0100.00714.98
7.2.190.0200.00315.25
7.2.180.0150.00515.18
7.2.170.0070.01015.23
7.2.160.0110.00815.33
7.2.150.0070.01115.21
7.2.140.0110.01115.40
7.2.130.0100.00715.36
7.2.120.0110.01015.09
7.2.110.0160.00414.92
7.2.100.0130.01015.38
7.2.90.0140.00715.41
7.2.80.0050.01115.31
7.2.70.0900.01315.45
7.2.60.0140.00515.24
7.2.50.0080.01114.98
7.2.40.0180.00615.08
7.2.30.0090.01215.24
7.2.20.0140.00515.16
7.2.10.0130.01015.31
7.2.00.0040.01115.11
7.1.330.0050.01413.91
7.1.320.0060.00914.06
7.1.310.0050.01014.13
7.1.300.0150.00014.17
7.1.290.0060.00714.03
7.1.280.0050.01013.98
7.1.270.0040.01514.14
7.1.260.0080.01214.25
7.1.250.0120.00614.23

preferences:
63.48 ms | 400 KiB | 5 Q