3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new SplFixedArray(2); $x[1] = "a"; $x->{"1"} = "b"; $x->{"123"} = "c"; var_dump($x); var_dump(serialize($x)); var_dump(unserialize(serialize($x)));

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.5.10.0120.00620.27
8.5.00.0100.01219.92
8.4.150.0010.00114.05
8.4.140.0120.00917.51
8.4.130.0050.00617.90
8.4.120.0110.00924.29
8.4.110.0110.00921.42
8.4.100.0050.00618.61
8.4.90.0110.00918.86
8.4.80.0110.00818.61
8.4.70.0110.00818.03
8.4.60.0060.00319.16
8.4.50.0140.00618.65
8.4.40.0050.00319.50
8.4.30.0000.01019.08
8.4.20.0270.00921.68
8.4.10.0220.01020.78
8.3.280.0110.01018.35
8.3.270.0120.00716.83
8.3.260.0130.00717.36
8.3.250.0110.00818.77
8.3.240.0130.00717.05
8.3.230.0110.00816.47
8.3.220.0070.01019.11
8.3.210.0090.00916.98
8.3.200.0040.00616.59
8.3.190.0120.00717.37
8.3.180.0120.00617.40
8.3.170.0060.01222.70
8.3.160.0110.00417.02
8.3.150.0300.00616.91
8.3.140.0240.00416.65
8.3.130.0160.00617.68
8.3.120.0160.00917.61
8.3.110.0230.00518.84
8.3.100.0210.00620.33
8.3.90.0240.00321.72
8.3.80.0190.00917.24
8.3.70.0130.00717.56
8.3.60.0190.00917.59
8.3.50.0210.01016.67
8.3.40.0230.01118.69
8.3.30.0220.00618.04
8.3.20.0220.00720.76
8.3.10.0150.00821.06
8.3.00.0120.00521.87
8.2.290.0100.00920.48
8.2.280.0100.00918.66
8.2.270.0230.00516.78
8.2.260.0200.00816.54
8.2.250.0170.00617.51
8.2.240.0160.00817.64
8.2.230.0140.01019.56
8.2.220.0160.00726.98
8.2.210.0190.01021.73
8.2.200.0230.00016.45
8.2.190.0240.00516.37
8.2.180.0210.00817.46
8.2.170.0220.00818.23
8.2.160.0180.00820.30
8.2.150.0190.00621.64
8.2.140.0190.00621.10
8.2.130.0170.00621.77
8.2.120.0200.00321.94
8.2.110.0160.00719.92
8.2.100.0240.00417.58
8.2.90.0190.00417.62
8.2.80.0180.00517.92
8.2.70.0170.00617.44
8.2.60.0200.00417.44
8.2.50.0210.00317.40
8.2.40.0140.00817.53
8.2.30.0270.00417.53
8.2.20.0210.00317.51
8.2.10.0200.00217.56
8.2.00.0190.00417.52
8.1.330.0130.01021.66
8.1.320.0140.00616.03
8.1.310.0220.00416.45
8.1.300.0190.00317.03
8.1.290.0170.00823.46
8.1.280.0190.00920.91
8.1.270.0160.00620.98
8.1.260.0170.00521.81
8.1.250.0180.00422.68
8.1.240.0180.00418.94
8.1.230.0160.00719.71
8.1.220.0170.00417.44
8.1.210.0120.00618.00
8.1.200.0150.00417.35
8.1.190.0160.00217.17
8.1.180.0150.00617.51
8.1.170.0180.00617.50
8.1.160.0160.00717.40
8.1.150.0180.00517.50
8.1.140.0130.00817.46
8.1.130.0150.00717.52
8.1.120.0180.00517.48
8.1.110.0180.00617.41
8.1.100.0150.00517.49
8.1.90.0130.01117.46
8.1.80.0170.00617.46
8.1.70.0190.00517.42
8.1.60.0180.00617.54
8.1.50.0210.00217.44
8.1.40.0220.00417.42
8.1.30.0160.00817.50
8.1.20.0180.00617.58
8.1.10.0170.00717.44
8.1.00.0200.00317.45
8.0.300.0150.00717.55
8.0.290.0130.00716.66
8.0.280.0180.00617.31
8.0.270.0170.00617.23
8.0.260.0180.00517.18
8.0.250.0160.00717.20
8.0.240.0220.00117.31
8.0.230.0210.00417.31
8.0.220.0130.00817.28
8.0.210.0160.00717.27
8.0.200.0100.01117.27
8.0.190.0210.00417.24
8.0.180.0200.00517.25
8.0.170.0180.00517.30
8.0.160.0190.00417.22
8.0.150.0190.00517.29
8.0.140.0180.00417.26
8.0.130.0110.00617.29
8.0.120.0200.00217.30
8.0.110.0160.00617.24
8.0.100.0180.00517.26
8.0.90.0180.00417.28
8.0.80.0190.00317.22
8.0.70.0110.01117.15
8.0.60.0230.00217.31
8.0.50.0240.00417.22
8.0.30.0150.00817.27
8.0.20.0180.00517.23
8.0.10.0100.01117.27

preferences:
34.8 ms | 403 KiB | 5 Q