3v4l.org

run code in 500+ PHP versions simultaneously
<?php set_error_handler(function () { throw new Exception("foo"); }); class MyArrayAcess implements ArrayAccess { public function offsetExists(mixed $offset): mixed {} public function offsetGet(mixed $offset): mixed {} public function offsetSet(mixed $offset, mixed $value): void {} public function offsetUnset(mixed $offset): void {} }

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.90.0100.00717.90
8.5.80.0070.00617.81
8.5.70.0100.00617.77
8.5.60.0100.00817.87
8.5.50.0100.00717.64
8.5.40.0120.00718.48
8.5.30.0140.00518.62
8.5.20.0120.00819.06
8.5.10.0180.00716.69
8.5.00.0130.00918.54
8.4.240.0140.01019.51
8.4.230.0150.00919.52
8.4.220.0130.00519.61
8.4.210.0110.01319.58
8.4.200.0160.00719.67
8.4.190.0200.01119.83
8.4.180.0070.00620.19
8.4.170.0100.01121.91
8.4.160.0140.01221.46
8.4.150.0100.00718.40
8.4.140.0140.00918.58
8.4.130.0140.00619.20
8.4.120.0100.00421.89
8.4.110.0120.00321.24
8.4.100.0130.00817.78
8.4.90.0120.01018.47
8.4.80.0120.00418.85
8.4.70.0120.00818.85
8.4.60.0110.01018.34
8.4.50.0130.00918.76
8.4.40.0120.00617.82
8.4.30.0130.00919.95
8.4.20.0180.00518.63
8.4.10.0110.01018.66
8.3.330.0120.01019.32
8.3.320.0120.01019.53
8.3.310.0120.01019.41
8.3.300.0130.01019.60
8.3.290.0090.01420.57
8.3.280.0140.00919.36
8.3.270.0150.00917.58
8.3.260.0140.00717.70
8.3.250.0140.00618.71
8.3.240.0120.00917.87
8.3.230.0120.00817.59
8.3.220.0110.00618.79
8.3.210.0110.00817.60
8.3.200.0100.00417.60
8.3.190.0090.00717.88
8.3.180.0120.00717.78
8.3.170.0120.00818.58
8.3.160.0130.00817.63
8.3.150.0150.00617.04
8.3.140.0100.00618.66
8.3.130.0100.00617.72
8.3.120.0130.00418.72
8.3.110.0090.00718.89
8.3.100.0130.00316.74
8.3.90.0110.00521.76
8.3.80.0080.00816.70
8.3.70.0120.00816.74
8.3.60.0170.00516.75
8.3.50.0130.00817.52
8.3.40.0130.00818.58
8.3.30.0150.00518.46
8.3.20.0070.00720.98
8.3.10.0090.00521.32
8.3.00.0090.00622.07
8.2.330.0140.00918.23
8.2.320.0130.00818.10
8.2.310.0120.00918.20
8.2.300.0200.01118.02
8.2.290.0200.00818.71
8.2.280.0160.00717.56
8.2.270.0200.00816.86
8.2.260.0220.00717.72
8.2.250.0160.00516.84
8.2.240.0180.00516.86
8.2.230.0180.00619.51
8.2.220.0180.00820.39
8.2.210.0160.00821.67
8.2.200.0190.00416.82
8.2.190.0170.00816.56
8.2.180.0190.00721.26
8.2.170.0210.00818.46
8.2.160.0210.00420.48
8.2.150.0140.00521.81
8.2.140.0190.00321.19
8.2.130.0170.00522.00
8.2.120.0120.00718.84
8.2.110.0150.00518.58
8.2.100.0180.00617.73
8.2.90.0080.00717.94
8.2.80.0190.00318.46
8.2.70.0150.00517.67
8.2.60.0120.00417.73
8.2.50.0160.00717.63
8.2.40.0120.00818.04
8.2.30.0120.00818.00
8.2.20.0160.00518.60
8.2.10.0160.00518.07
8.2.00.0160.00618.45
8.1.340.0260.00817.65
8.1.330.0220.00719.09
8.1.320.0180.00916.46
8.1.310.0230.00516.25
8.1.300.0140.00818.04
8.1.290.0150.00823.41
8.1.280.0180.00821.04
8.1.270.0140.00820.78
8.1.260.0150.00722.00
8.1.250.0150.00322.87
8.1.240.0120.00719.94
8.1.230.0160.00319.18
8.1.220.0120.00517.65
8.1.210.0100.00518.28
8.1.200.0090.00617.47
8.1.190.0090.00617.41
8.1.180.0100.00617.82
8.1.170.0130.00817.99
8.1.160.0110.00618.28
8.1.150.0120.00518.13
8.1.140.0090.00817.84
8.1.130.0090.00718.28
8.1.120.0090.00517.82
8.1.110.0120.00717.82
8.1.100.0140.00317.90
8.1.90.0090.00717.79
8.1.80.0100.00717.82
8.1.70.0110.00517.77
8.1.60.0080.00917.95
8.1.50.0150.00617.72
8.1.40.0110.00717.96
8.1.30.0110.00617.97
8.1.20.0110.00618.07
8.1.10.0070.00617.72
8.1.00.0100.00617.72
8.0.300.0090.00718.52
8.0.290.0080.00316.90
8.0.280.0070.00517.51
8.0.270.0120.00317.22
8.0.260.0110.00517.69
8.0.250.0120.00417.24
8.0.240.0090.00517.68
8.0.230.0100.00417.79
8.0.220.0060.00517.68
8.0.210.0140.00517.08
8.0.200.0130.00717.22
8.0.190.0130.00817.12
8.0.180.0140.00517.11
8.0.170.0160.00417.09
8.0.160.0130.00617.16
8.0.150.0090.01017.08
8.0.140.0110.00617.12
8.0.130.0170.00316.12
8.0.120.0120.00716.50
8.0.110.0130.00616.59
8.0.100.0120.00616.62
8.0.90.0120.00616.58
8.0.80.0100.00816.60
8.0.70.0140.00416.64
8.0.60.0130.00416.61
8.0.50.0140.00216.53
8.0.30.0140.00316.59
8.0.20.0120.00516.71
8.0.10.0140.00416.76
8.0.00.0070.00716.84
7.4.330.0080.00317.25
7.4.320.0100.00417.57
7.4.300.0070.00717.54
7.4.290.0070.00717.46
7.4.280.0120.00517.51
7.4.270.0080.00617.48
7.4.260.0110.00417.16
7.4.250.0120.00516.40
7.4.240.0140.00416.40
7.4.230.0090.00516.44
7.4.220.0100.00416.43
7.4.210.0110.00616.41
7.4.200.0120.00616.44
7.4.190.0130.00516.40
7.4.180.0150.00216.42
7.4.160.0120.00616.48
7.4.150.0110.00516.41
7.4.140.0130.00516.35
7.4.130.0150.00316.26
7.4.120.0110.00716.30
7.4.110.0120.00616.31
7.4.100.0120.00616.35
7.4.90.0150.00316.37
7.4.80.0150.00716.21
7.4.70.0130.00516.30
7.4.60.0110.00616.29
7.4.50.0100.00616.35
7.4.40.0110.00516.28
7.4.30.0110.00616.33
7.4.20.0100.00616.39
7.4.10.0120.00416.37
7.4.00.0130.00416.40
7.3.330.0140.00317.12
7.3.320.0130.00316.40
7.3.310.0140.00216.28
7.3.300.0090.00716.38
7.3.290.0100.00616.34
7.3.280.0120.00416.33
7.3.270.0120.00416.31
7.3.260.0120.00416.26
7.3.250.0080.00516.23
7.3.240.0080.00616.26
7.3.230.0080.00516.31
7.3.220.0100.00216.29
7.3.210.0110.00416.27
7.3.200.0110.00316.11
7.3.190.0080.00516.21
7.3.180.0100.00416.16
7.3.170.0090.00416.26
7.3.160.0110.00216.21
7.3.150.0100.00316.06
7.3.140.0070.00616.19
7.3.130.0090.00416.19
7.3.120.0080.00516.17
7.3.110.0120.00316.22
7.3.100.0100.00516.18
7.3.90.0090.00316.44
7.3.80.0100.00316.29
7.3.70.0090.00416.30
7.3.60.0110.00316.24
7.3.50.0100.00516.41
7.3.40.0090.00416.35
7.3.30.0120.00316.44
7.3.20.0130.00317.66
7.3.10.0130.00217.58
7.3.00.0110.00317.53

preferences:
48.91 ms | 1479 KiB | 5 Q