3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sxe = new SimpleXMLElement('<foo bar="baz"/>'); echo $sxe['bar'], PHP_EOL; echo $sxe->{"@attributes"}['bar'], PHP_EOL; // should print the same as the line above

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.0140.00416.75
8.3.50.0100.00720.07
8.3.40.0030.01020.72
8.3.30.0040.01118.80
8.3.20.0050.00324.18
8.3.10.0070.00024.66
8.3.00.0080.00026.16
8.2.180.0060.00925.92
8.2.170.0120.00619.08
8.2.160.0100.00722.96
8.2.150.0000.00725.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00426.16
8.2.110.0070.00322.55
8.2.100.0090.00317.93
8.2.90.0060.00319.46
8.2.80.0080.00018.00
8.2.70.0000.01117.75
8.2.60.0050.00318.18
8.2.50.0030.00618.07
8.2.40.0070.00018.59
8.2.30.0000.00718.37
8.2.20.0000.00720.75
8.2.10.0050.00318.31
8.2.00.0040.00419.38
8.1.280.0210.00025.92
8.1.270.0050.00323.99
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00022.54
8.1.230.0040.00822.73
8.1.220.0050.00318.01
8.1.210.0030.00518.77
8.1.200.0040.00417.47
8.1.190.0040.00417.48
8.1.180.0000.00919.13
8.1.170.0040.00418.84
8.1.160.0000.00819.06
8.1.150.0040.00418.69
8.1.140.0000.00717.61
8.1.130.0000.00819.13
8.1.120.0030.00417.54
8.1.110.0000.00717.59
8.1.100.0080.00017.51
8.1.90.0000.00817.60
8.1.80.0000.00817.61
8.1.70.0100.00717.38
8.1.60.0160.00317.47
8.1.50.0180.00017.63
8.1.40.0120.00917.73
8.1.30.0150.00317.73
8.1.20.0070.01117.67
8.1.10.0180.00017.67
8.1.00.0110.00717.69
8.0.300.0040.00422.20
8.0.290.0040.00417.28
8.0.280.0070.00018.69
8.0.270.0030.00418.20
8.0.260.0060.00018.53
8.0.250.0000.00717.15
8.0.240.0070.00017.04
8.0.230.0000.00717.00
8.0.220.0030.00316.95
8.0.210.0050.01016.91
8.0.200.0080.00616.91
8.0.190.0120.00217.05
8.0.180.0080.00817.10
8.0.170.0100.00517.01
8.0.160.0090.00617.06
8.0.150.0100.00516.89
8.0.140.0030.01317.03
8.0.130.0110.00316.81
8.0.120.0160.00316.88
8.0.110.0140.00217.03
8.0.100.0050.01116.99
8.0.90.0060.00916.99
8.0.80.0120.00317.05
8.0.70.0140.00316.83
8.0.60.0100.00716.85
8.0.50.0100.00716.91
8.0.30.0120.00016.96
8.0.20.0000.01216.93
8.0.10.0050.00517.02
7.4.330.0040.00415.55
7.4.320.0070.00016.49
7.4.300.0000.00916.51
7.4.290.0060.00316.70
7.4.280.0000.00916.62
7.4.270.0050.00716.81
7.4.260.0060.00316.57
7.4.250.0140.00216.75
7.4.240.0160.00016.74
7.4.230.0110.00016.11
7.4.220.0090.00316.22
7.4.210.0060.00516.59
7.4.200.0050.00616.73
7.4.190.0080.00316.53
7.4.180.0110.00016.17
7.4.160.0000.01016.33
7.4.150.0080.00616.75
7.4.140.0060.00916.48
7.4.130.0000.01016.43
7.4.120.0060.00316.24
7.4.110.0030.00616.25
7.4.100.0050.00516.36
7.4.90.0050.00516.58
7.4.80.0050.00515.84
7.4.70.0070.00016.36
7.4.60.0040.00416.68
7.4.50.0050.00216.39
7.4.40.0000.00916.41
7.4.30.0040.00416.29
7.4.20.0050.00516.07
7.4.10.0060.00216.50
7.4.00.0080.00416.54

preferences:
51.92 ms | 400 KiB | 5 Q