3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo implements ArrayAccess { public function offsetExists($offset) { print 'offsetExists called with: ' . $offset; } public function offsetGet($offset) { print 'offsetGet called with: ' . $offset; } public function offsetSet($offset, $value) { } public function offsetUnset($offset) { } } $foo = new Foo(); $foo['bar']; print "\n\n"; $foo['baz'] ?? null;

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.0120.01020.20
8.4.150.0020.00114.05
8.4.140.0130.01417.73
8.4.130.0130.00719.48
8.4.120.0130.00620.64
8.4.110.0140.00622.46
8.4.100.0110.00818.50
8.4.90.0110.01118.82
8.4.80.0160.00617.80
8.4.70.0130.00818.02
8.4.60.0110.00618.58
8.4.50.0090.01022.55
8.4.40.0130.00717.88
8.4.30.0090.00320.61
8.4.20.0130.00617.58
8.4.10.0040.00426.03
8.3.280.0160.00718.48
8.3.270.0150.00516.73
8.3.260.0080.00616.76
8.3.250.0110.00818.93
8.3.240.0050.00316.63
8.3.230.0100.00916.54
8.3.220.0050.00317.40
8.3.210.0110.00716.88
8.3.200.0050.00716.92
8.3.190.0030.00517.12
8.3.180.0100.00516.61
8.3.170.0050.00317.13
8.3.160.0110.00716.62
8.3.150.0190.00020.55
8.3.140.0040.00416.88
8.3.130.0000.00818.74
8.3.120.0080.00020.80
8.3.110.0050.00516.63
8.3.100.0090.00020.48
8.3.90.0040.00426.77
8.3.80.0130.00019.36
8.3.70.0150.00316.75
8.3.60.0180.00916.50
8.3.50.0070.01023.53
8.3.40.0160.00318.97
8.3.30.0000.01418.84
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0040.00426.16
8.2.290.0100.00920.33
8.2.280.0070.00318.22
8.2.270.0160.00316.97
8.2.260.0040.00420.73
8.2.250.0000.00818.68
8.2.240.0100.00018.14
8.2.230.0060.00320.94
8.2.220.0050.00324.06
8.2.210.0090.00926.77
8.2.200.0030.00718.88
8.2.190.0150.00016.67
8.2.180.0150.00725.92
8.2.170.0140.00418.88
8.2.160.0070.00722.96
8.2.150.0000.00725.66
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00319.77
8.2.110.0040.00422.20
8.2.100.0030.00717.72
8.2.90.0040.00417.75
8.2.80.0040.00418.77
8.2.70.0060.00617.75
8.2.60.0040.00417.93
8.2.50.0000.01218.07
8.2.40.0050.00318.34
8.2.30.0030.00718.08
8.2.20.0020.00518.10
8.2.10.0080.00019.37
8.2.00.0000.00819.22
8.1.330.0120.00721.91
8.1.320.0120.00716.70
8.1.310.0120.00616.53
8.1.300.0100.00017.95
8.1.290.0030.00630.84
8.1.280.0090.00625.92
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00322.14
8.1.230.0080.00317.70
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0060.00317.35
8.1.190.0000.00817.36
8.1.180.0000.00918.10
8.1.170.0030.00618.66
8.1.160.0040.00418.88
8.1.150.0060.00318.89
8.1.140.0020.00518.79
8.1.130.0040.00420.12
8.1.120.0050.00217.39
8.1.110.0050.00317.47
8.1.100.0000.00717.50
8.1.90.0030.00517.46
8.1.80.0050.00517.31
8.1.70.0070.00017.34
8.1.60.0040.00417.59
8.1.50.0030.00617.48
8.1.40.0000.00817.45
8.1.30.0040.00417.70
8.1.20.0000.00917.60
8.1.10.0030.00617.50
8.1.00.0000.00917.39
8.0.300.0000.00719.86
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0050.00317.96
8.0.260.0000.00818.35
8.0.250.0000.00716.95
8.0.240.0000.00616.98
8.0.230.0030.00316.93
8.0.220.0040.00416.92
8.0.210.0030.00316.80
8.0.200.0050.00316.88
8.0.190.0000.00716.90
8.0.180.0070.00016.78
8.0.170.0080.00016.81
8.0.160.0040.00416.87
8.0.150.0000.00716.75
8.0.140.0070.00016.86
8.0.130.0000.00613.35
8.0.120.0030.00616.81
8.0.110.0070.00016.76
8.0.100.0050.00317.00
8.0.90.0030.00316.95
8.0.80.0140.00516.86
8.0.70.0070.00016.72
8.0.60.0040.00416.69
8.0.50.0040.00416.83
8.0.30.0110.00517.06
8.0.20.0130.01317.33
8.0.10.0090.01116.98
8.0.00.0080.01116.94
7.4.330.0030.00315.55
7.4.320.0050.00316.60
7.4.300.0060.00016.40
7.4.290.0040.00416.42
7.4.280.0000.00916.48
7.4.270.0070.00016.58
7.4.260.0060.00013.27
7.4.250.0000.00716.46
7.4.240.0040.00416.52
7.4.230.0070.00016.56
7.4.220.0030.00316.46
7.4.210.0120.00516.53
7.4.200.0040.00416.67
7.4.140.0110.00716.39
7.4.130.0140.00716.37
7.4.120.0080.01216.35
7.4.110.0160.00316.33
7.4.100.0120.00816.30
7.4.90.0090.00916.36
7.4.80.0110.00616.44
7.4.70.0130.00516.37
7.4.60.0070.01016.44
7.4.50.0090.00916.36
7.4.40.0090.01116.50
7.4.30.0100.00816.32
7.4.20.0100.00716.48
7.4.10.0080.01016.47
7.4.00.0050.01316.62
7.3.330.0040.00416.36
7.3.320.0000.00513.31
7.3.310.0080.00016.20
7.3.300.0030.00316.20
7.3.290.0030.01216.38
7.3.260.0060.01116.41
7.3.250.0150.00916.46
7.3.240.0080.01016.45
7.3.230.0100.01016.37
7.3.220.0110.00716.48
7.3.210.0080.00916.34
7.3.200.0090.00916.39
7.3.190.0080.01016.24
7.3.180.0060.01016.40
7.3.170.0120.00416.37
7.3.160.0080.01116.40
7.3.150.0080.01016.46
7.3.140.0100.01116.43
7.3.130.0020.01616.27
7.3.120.0080.00816.31
7.3.110.0110.00716.44
7.3.100.0100.00716.14
7.3.90.0120.00616.37
7.3.80.0090.00816.43
7.3.70.0110.00816.27
7.3.60.0130.00616.32
7.3.50.0130.00516.40
7.3.40.0090.00816.40
7.3.30.0090.01016.45
7.3.20.0110.00816.24
7.3.10.0050.01216.29
7.3.00.0050.01116.30

preferences:
37.01 ms | 403 KiB | 5 Q