3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!doctype html> <html> <body> <img src="computerIcon.png"> </body> </html> '; $proxy = 'https://proxy.example.com/?url=https://domain.example.com/'; $xml = new DOMDocument("1.0", "utf-8"); $xml->loadHTML($html); foreach($xml->getElementsByTagName('img') as $item) { $item->setAttribute('src', $proxy . $item->getAttribute('src')); } $xml->formatOutput = true; echo $xml->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.4.130.0140.00618.09
8.4.120.0070.00326.02
8.4.110.0130.00818.04
8.4.100.0050.00417.83
8.4.90.0120.00820.82
8.4.80.0050.00319.26
8.4.70.0030.00519.19
8.4.60.0130.00818.03
8.4.50.0050.00318.80
8.4.40.0070.00418.00
8.4.30.0130.00720.86
8.4.20.0130.00717.81
8.4.10.0130.00719.68
8.3.260.0110.00817.10
8.3.250.0050.00419.26
8.3.240.0080.00117.55
8.3.230.0030.00516.87
8.3.220.0060.00319.19
8.3.210.0130.00517.03
8.3.200.0100.00216.77
8.3.190.0080.01117.35
8.3.180.0080.01117.70
8.3.170.0110.00721.07
8.3.160.0090.00917.25
8.3.150.0080.01119.10
8.3.140.0110.00717.49
8.3.130.0070.01018.74
8.3.120.0120.00619.20
8.3.110.0050.00320.94
8.3.100.0130.00324.06
8.3.90.0080.00026.77
8.3.80.0060.00318.76
8.3.70.0110.00416.61
8.3.60.0110.01118.56
8.3.50.0130.00718.91
8.3.40.0100.00320.17
8.3.30.0110.00319.13
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0040.00426.16
8.2.290.0040.00416.89
8.2.280.0090.01017.14
8.2.270.0180.00019.39
8.2.260.0040.00416.73
8.2.250.0080.00018.67
8.2.240.0100.00719.49
8.2.230.0090.00922.58
8.2.220.0000.00937.54
8.2.210.0090.00926.77
8.2.200.0000.01016.75
8.2.190.0150.00616.63
8.2.180.0120.00925.92
8.2.170.0120.00319.05
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0060.00318.05
8.2.110.0040.00420.60
8.2.100.0040.00818.16
8.2.90.0080.00019.30
8.2.80.0050.00317.97
8.2.70.0060.00318.00
8.2.60.0050.00318.16
8.2.50.0050.00318.07
8.2.40.0040.00418.41
8.2.30.0040.00418.21
8.2.20.0050.00220.60
8.2.10.0040.00417.92
8.2.00.0040.00419.50
8.1.330.0110.00822.46
8.1.320.0050.00416.46
8.1.310.0040.00418.58
8.1.300.0090.00018.04
8.1.290.0070.00718.88
8.1.280.0150.00025.92
8.1.270.0090.00023.99
8.1.260.0030.00526.35
8.1.250.0000.00828.09
8.1.240.0070.00324.20
8.1.230.0090.00324.03
8.1.220.0030.00618.14
8.1.210.0040.00418.77
8.1.200.0000.01017.48
8.1.190.0080.00017.60
8.1.180.0050.00318.10
8.1.170.0030.00518.92
8.1.160.0000.00819.27
8.1.150.0040.00418.80
8.1.140.0000.00817.59
8.1.130.0030.00319.04
8.1.120.0000.00817.78
8.1.110.0030.00517.62
8.1.100.0000.00717.71
8.1.90.0040.00417.68
8.1.80.0070.00017.70
8.1.70.0030.00517.63
8.1.60.0000.00717.76
8.1.50.0030.00517.69
8.1.40.0000.00717.77
8.1.30.0040.00417.83
8.1.20.0030.00617.81
8.1.10.0230.00817.78
8.1.00.0240.00617.68
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0030.00318.78
8.0.270.0070.00017.01
8.0.260.0030.00318.51
8.0.250.0070.00017.10
8.0.240.0000.00717.22
8.0.230.0030.00317.23
8.0.220.0040.00417.09
8.0.210.0000.00817.03
8.0.200.0000.00817.11
8.0.190.0040.00417.20
8.0.180.0030.00517.07
8.0.170.0000.00817.06
8.0.160.0040.00417.12
8.0.150.0040.00417.01
8.0.140.0210.00316.95
8.0.130.0150.00816.96
8.0.120.0230.00017.09
8.0.110.0160.00717.08
8.0.100.0230.00017.06
8.0.90.0240.00017.13
8.0.80.0230.00317.07
8.0.70.0250.00016.99
8.0.60.0190.00617.05
8.0.50.0220.00317.05
8.0.30.0260.00016.99
8.0.20.0240.00017.02
8.0.10.0210.00317.13
7.4.330.0030.00315.55
7.4.320.0000.00716.71
7.4.300.0030.00316.70
7.4.290.0070.00316.58
7.4.280.0000.00816.85
7.4.270.0210.00516.79
7.4.260.0220.00516.75
7.4.250.0220.00316.72
7.4.240.0110.01216.68
7.4.230.0160.01416.82
7.4.220.0190.00416.86
7.4.210.0170.00616.71
7.4.200.0160.00516.62
7.4.190.0170.00416.71
7.4.180.0220.00316.74
7.4.160.0130.00916.85
7.4.150.0200.00716.64
7.4.140.0150.00716.73
7.4.130.0150.00816.64
7.4.120.0170.00616.54
7.4.110.0220.00316.66
7.4.100.0190.00416.64
7.4.90.0170.00516.57
7.4.80.0220.00016.69
7.4.70.0070.01016.67
7.4.60.0070.00516.66
7.4.50.0050.00816.50
7.4.40.0100.00416.62
7.4.30.0050.00916.64
7.4.20.0050.00816.48
7.4.10.0100.00416.68
7.4.00.0090.00716.52

preferences:
56.01 ms | 403 KiB | 5 Q