3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass {} $c = new MyClass(); $y = new ArrayObject($c); $y['foo'] = 'bar'; // <-- should emit deprecation warning $c->foo2 = 2; var_export($c); echo "\n"; readonly class ReadOnly_ {} $r = new ReadOnly_(); $z = new ArrayObject($r); $z['foo'] = 'bar'; var_export($r);

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.00.0150.01021.72
8.4.150.0020.00014.05
8.4.140.0100.01017.48
8.4.130.0110.00918.70
8.4.120.0110.01019.46
8.4.110.0110.00922.50
8.4.100.0130.00718.15
8.4.90.0120.00820.73
8.4.80.0030.00718.91
8.4.70.0100.01120.51
8.4.60.0110.01020.47
8.4.50.0110.00820.56
8.4.40.0100.01020.71
8.4.30.0090.00620.52
8.4.20.0140.00718.05
8.4.10.0130.00723.52
8.3.280.0130.01020.05
8.3.270.0180.00816.72
8.3.260.0100.00916.64
8.3.250.0070.01016.86
8.3.240.0160.00416.62
8.3.230.0110.01116.76
8.3.220.0100.00818.95
8.3.210.0100.00816.82
8.3.200.0110.00916.71
8.3.190.0040.00516.87
8.3.180.0100.00418.95
8.3.170.0110.00417.08
8.3.160.0070.01018.61
8.3.150.0110.00718.50
8.3.140.0110.00316.69
8.3.130.0030.00618.38
8.3.120.0060.00320.90
8.3.110.0060.00316.75
8.3.100.0210.00016.83
8.3.50.0030.00616.75
8.3.20.0130.00625.66
8.3.10.0090.00925.66
8.3.00.0110.00725.66
8.2.290.0130.00616.72
8.2.280.0140.00718.22
8.2.270.0110.00718.41
8.2.260.0040.00417.25
8.2.250.0120.00618.46
8.2.240.0040.00417.36
8.2.230.0080.00316.57
8.2.220.0140.00416.68
8.2.150.0130.00725.66
8.2.140.0130.00625.66
8.2.130.0090.00925.66
8.2.120.0130.00325.66
8.2.110.0000.01525.66
8.2.100.0130.00725.66
8.2.90.0070.01425.66
8.2.80.0100.00725.66
8.2.70.0140.00025.66
8.2.60.0090.00925.66
8.2.50.0070.01025.66
8.2.40.0110.00425.66
8.2.30.0110.00320.88
8.2.20.0130.00725.66
8.2.10.0050.00721.60
8.2.00.0110.00421.63
8.1.330.0150.00415.79
8.1.320.0120.00716.17
8.1.310.0060.01016.46
8.1.300.0150.00016.05
8.1.270.0120.00325.66
8.1.260.0110.00325.66
8.1.250.0120.00925.66
8.1.240.0100.01025.66
8.1.230.0070.00725.66
8.1.220.0090.01325.66
8.1.210.0110.00725.66
8.1.200.0140.00025.66
8.1.190.0110.00425.66
8.1.180.0110.00725.66
8.1.170.0100.01025.66
8.1.160.0140.00425.66
8.1.150.0090.00625.66
8.1.140.0140.00321.49
8.1.130.0080.00721.45
8.1.120.0110.00421.50
8.1.110.0070.00821.48
8.1.100.0100.00521.53
8.1.90.0070.00520.13
8.1.80.0090.00520.06
8.1.70.0080.00620.06
8.1.60.0130.00220.14
8.1.50.0140.00220.16
8.1.40.0120.00620.15
8.1.30.0110.00720.18
8.1.20.0120.00620.22
8.1.10.0110.00620.11
8.1.00.0150.00220.11
8.0.300.0140.00025.66
8.0.290.0230.00525.66
8.0.280.0270.00325.66
8.0.270.0130.00421.18
8.0.260.0180.00321.22
8.0.250.0150.00421.31
8.0.240.0170.00521.23
8.0.230.0170.00621.19
8.0.220.0120.00619.73
8.0.210.0130.00819.73
8.0.200.0100.00619.72
8.0.190.0140.00619.78
8.0.180.0120.00419.74
8.0.170.0130.00719.74
8.0.160.0100.00519.75
8.0.150.0140.00619.67
8.0.140.0130.00519.65
8.0.130.0170.00219.71
8.0.120.0110.00719.73
8.0.110.0070.00919.72
8.0.100.0100.00719.69
8.0.90.0160.00419.76
8.0.80.0120.00319.77
8.0.70.0130.00219.76
8.0.60.0160.00419.73
8.0.50.0110.00819.71
8.0.30.0090.00619.70
8.0.20.0080.00819.77
8.0.10.0150.00519.75
7.4.330.0200.00120.98
7.4.320.0240.00421.02
7.4.300.0200.00419.47
7.4.290.0180.00719.44
7.4.280.0170.00619.45
7.4.270.0160.00519.35
7.4.260.0170.00419.28
7.4.250.0170.00519.31
7.4.240.0180.00419.43
7.4.230.0150.00619.46
7.4.220.0160.00619.47
7.4.210.0170.00519.47
7.4.200.0160.00519.45
7.4.190.0190.00219.50
7.4.180.0130.00519.48
7.4.160.0120.00720.03
7.4.150.0110.00619.40
7.4.140.0170.00519.43
7.4.130.0130.00819.17
7.4.120.0140.00619.34
7.4.110.0150.00319.34
7.4.100.0140.00520.00
7.4.90.0100.00819.27
7.4.80.0070.00919.35
7.4.70.0130.00419.42
7.4.60.0170.00519.36
7.4.50.0150.00719.30
7.4.40.0150.00319.33
7.4.30.0160.00419.29
7.4.20.0160.00419.34
7.4.10.0190.00219.39
7.4.00.0150.00519.41

preferences:
93.88 ms | 403 KiB | 5 Q