3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = simplexml_load_string('<foo><bar baz="quux">hello</bar> world<![CDATA[!]]></foo>'); echo (string)$foo, "\n"; echo (string)$foo->bar, "\n"; echo (string)$foo->bar['baz'], "\n";

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.0070.00717.00
8.3.50.0150.00020.02
8.3.40.0070.01020.31
8.3.30.0120.00318.92
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.180.0040.02225.92
8.2.170.0090.00919.34
8.2.160.0170.00022.96
8.2.150.0080.00025.66
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00426.16
8.2.110.0060.00320.68
8.2.100.0000.01217.91
8.2.90.0080.00018.00
8.2.80.0060.00318.96
8.2.70.0040.00418.29
8.2.60.0040.00417.84
8.2.50.0040.00417.88
8.2.40.0060.00317.75
8.2.30.0020.00518.41
8.2.20.0000.00720.61
8.2.10.0050.00318.38
8.2.00.0000.00719.45
8.1.280.0110.00325.92
8.1.270.0030.00523.98
8.1.260.0000.00826.35
8.1.250.0000.00828.09
8.1.240.0060.00322.14
8.1.230.0000.01121.22
8.1.220.0000.00818.01
8.1.210.0030.00518.77
8.1.200.0050.00317.35
8.1.190.0040.00417.64
8.1.180.0030.00618.10
8.1.170.0000.00719.14
8.1.160.0040.00418.93
8.1.150.0030.00518.63
8.1.140.0030.00517.59
8.1.130.0000.00719.08
8.1.120.0040.00417.53
8.1.110.0000.00717.64
8.1.100.0040.00417.59
8.1.90.0050.00217.51
8.1.80.0040.00417.54
8.1.70.0110.00617.64
8.1.60.0140.00617.65
8.1.50.0150.00317.59
8.1.40.0120.00617.79
8.1.30.0080.01117.89
8.1.20.0120.00617.75
8.1.10.0050.01417.67
8.1.00.0160.00317.70
8.0.300.0030.00618.77
8.0.290.0050.00217.00
8.0.280.0030.00318.56
8.0.270.0070.00017.02
8.0.260.0000.00818.65
8.0.250.0030.00317.04
8.0.240.0030.00317.20
8.0.230.0000.00817.11
8.0.220.0070.00016.90
8.0.210.0080.00717.00
8.0.200.0100.00517.00
8.0.190.0130.00317.10
8.0.180.0100.00717.09
8.0.170.0110.00516.96
8.0.160.0030.01316.92
8.0.150.0160.00017.03
8.0.140.0120.00316.91
8.0.130.0110.00316.83
8.0.120.0070.00717.03
8.0.110.0110.00416.93
8.0.100.0050.00816.91
8.0.90.0100.00316.86
8.0.80.0100.01016.81
8.0.70.0040.01216.99
8.0.60.0100.00516.95
8.0.50.0090.00717.05
8.0.30.0090.00717.01
8.0.20.0120.00516.96
8.0.10.0180.00017.25
7.4.330.0040.00415.55
7.4.320.0030.00316.80
7.4.300.0100.00016.61
7.4.290.0100.00316.70
7.4.280.0130.00316.82
7.4.270.0120.00616.72
7.4.260.0150.00316.70
7.4.250.0090.00916.72
7.4.240.0070.00816.67
7.4.230.0040.00816.56
7.4.220.0110.00016.55
7.4.210.0090.00416.61
7.4.200.0060.00616.83
7.4.190.0030.00916.65
7.4.180.0140.00016.81
7.4.160.0110.00216.85
7.4.150.0120.00216.75
7.4.140.0150.00016.61
7.4.130.0070.00716.68
7.4.120.0110.00216.65
7.4.110.0050.00516.42
7.4.100.0120.00016.52
7.4.90.0070.00616.63
7.4.80.0140.00016.79
7.4.70.0070.00716.61
7.4.60.0130.00016.59
7.4.50.0070.00716.46
7.4.40.0050.01016.59
7.4.30.0080.00716.57
7.4.20.0110.00216.63
7.4.10.0080.00516.68
7.4.00.0030.00916.59

preferences:
29.45 ms | 400 KiB | 5 Q