3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "* XML:\n"; echo simplexml_load_string('<foo>123</foo>'); echo "\n---\n"; echo "* PHP <?= echo shortcut:\n"; echo simplexml_load_string('<foo>456<?= bar(); ?></foo>'); echo "\n---\n"; echo "* PHP <?php but no ?>:\n"; echo simplexml_load_string('<foo>789<?php baz();</foo>'); echo "\n---\n"; echo "* PHP block with the ending tag:\n"; echo simplexml_load_string('<foo>abc<?php abc(); ?></foo>');

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.20.0170.00320.75
8.4.10.0030.00624.20
8.3.150.0070.01017.10
8.3.140.0060.00316.91
8.3.130.0000.00918.55
8.3.120.0080.00818.99
8.3.110.0080.00420.94
8.3.100.0080.00018.85
8.3.90.0050.00317.09
8.3.80.0060.00317.13
8.3.70.0120.00317.13
8.3.60.0120.00918.45
8.3.50.0180.00020.40
8.3.40.0070.00719.21
8.3.30.0100.00319.55
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.270.0130.00317.46
8.2.260.0120.00618.87
8.2.250.0040.00418.59
8.2.240.0090.00917.19
8.2.230.0060.00322.58
8.2.220.0130.00724.06
8.2.210.0030.00526.77
8.2.200.0060.00317.13
8.2.190.0140.00418.66
8.2.180.0040.01125.92
8.2.170.0090.00622.96
8.2.160.0170.00022.96
8.2.150.0050.00325.66
8.2.140.0120.00324.66
8.2.130.0000.00826.16
8.2.120.0040.00421.12
8.2.110.0040.00420.77
8.2.100.0070.00418.16
8.2.90.0040.00418.04
8.2.80.0030.00519.36
8.2.70.0060.00317.61
8.2.60.0080.00017.74
8.2.50.0080.00018.10
8.2.40.0000.00820.90
8.2.30.0040.00418.17
8.2.20.0000.00720.52
8.2.10.0070.00018.07
8.2.00.0000.00719.42
8.1.310.0030.00517.02
8.1.300.0070.00320.36
8.1.290.0030.00718.88
8.1.280.0040.01425.92
8.1.270.0090.00023.99
8.1.260.0150.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00924.10
8.1.230.0110.00020.97
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.00817.48
8.1.190.0050.00217.35
8.1.180.0050.00318.10
8.1.170.0000.00818.78
8.1.160.0000.00719.05
8.1.150.0050.00218.85
8.1.140.0020.00517.45
8.1.130.0030.00319.09
8.1.120.0030.00317.56
8.1.110.0040.00417.62
8.1.100.0080.00017.46
8.1.90.0040.00417.63
8.1.80.0000.00717.63
8.1.70.0000.00917.52
8.1.60.0050.00517.61
8.1.50.0130.00017.58
8.1.40.0120.00017.54
8.1.30.0080.00417.75
8.1.20.0150.00517.71
8.1.10.0050.01317.57
8.1.00.0150.00517.69
8.0.300.0000.00722.27
8.0.290.0050.00216.88
8.0.280.0030.00318.55
8.0.270.0050.00217.06
8.0.260.0060.00018.56
8.0.250.0000.00717.13
8.0.240.0070.00017.14
8.0.230.0050.00217.09
8.0.220.0000.00717.04
8.0.210.0070.00017.06
8.0.200.0130.00316.98
8.0.190.0110.00517.04
8.0.180.0130.00217.17
8.0.170.0120.00517.04
8.0.160.0100.00617.03
8.0.150.0070.01017.05
8.0.140.0170.00017.00
8.0.130.0180.00016.83
8.0.120.0140.00317.10
8.0.110.0080.00817.00
8.0.100.0160.00017.07
8.0.90.0100.00716.81
8.0.80.0100.00517.05
8.0.70.0140.00216.89
8.0.60.0140.00317.10
8.0.50.0140.00317.05
8.0.30.0090.00617.03
8.0.20.0120.00416.96
8.0.10.0100.00417.26
7.4.330.0000.00515.55
7.4.320.0030.00316.66
7.4.300.0080.00816.65
7.4.290.0090.00616.58
7.4.280.0100.00716.74
7.4.270.0180.00016.47
7.4.260.0110.00616.68
7.4.250.0130.00316.71
7.4.240.0000.01716.71
7.4.230.0190.00016.63
7.4.220.0040.01216.60
7.4.210.0090.00616.76
7.4.200.0120.00416.66
7.4.190.0130.00316.66
7.4.180.0060.01116.66
7.4.160.0110.00416.61
7.4.150.0050.01016.59
7.4.140.0130.00316.60
7.4.130.0120.00416.55
7.4.120.0150.00016.57
7.4.110.0110.00416.58
7.4.100.0140.00016.59
7.4.90.0090.00616.51
7.4.80.0130.00316.60
7.4.70.0050.00916.57
7.4.60.0100.00516.59
7.4.50.0110.00416.51
7.4.40.0090.00216.54
7.4.30.0050.00516.49
7.4.20.0030.00616.43
7.4.10.0070.00316.61
7.4.00.0120.00016.54

preferences:
28.03 ms | 402 KiB | 5 Q