3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Source: https://bugs.php.net/bug.php?id=54367 class MyObjet implements ArrayAccess { public function __construct() { } public function offsetSet($offset, $value) { } public function offsetExists($offset) { } public function offsetUnset($offset) { } public function offsetGet ($offset) { return function () {return 'abc'; }; } } $a = new MyObjet(); echo $a['p']('foo');

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.0150.00016.88
8.3.50.0080.00721.97
8.3.40.0120.00318.71
8.3.30.0070.00719.17
8.3.20.0040.00420.20
8.3.10.0000.00823.40
8.3.00.0030.00519.51
8.2.180.0040.01218.54
8.2.170.0110.00422.96
8.2.160.0070.00720.38
8.2.150.0040.00424.18
8.2.140.0140.00424.66
8.2.130.0130.00626.16
8.2.120.0000.00822.27
8.2.110.0080.00022.21
8.2.100.0060.00617.83
8.2.90.0050.00319.28
8.2.80.0040.00418.05
8.2.70.0030.00617.75
8.2.60.0040.00417.93
8.2.50.0030.00518.07
8.2.40.0030.00518.34
8.2.30.0050.00318.19
8.2.20.0040.00417.82
8.2.10.0050.00318.18
8.2.00.0040.00417.84
8.1.280.0110.00725.92
8.1.270.0090.00022.18
8.1.260.0030.00626.35
8.1.250.0080.00028.09
8.1.240.0090.00023.79
8.1.230.0120.00019.15
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00717.48
8.1.190.0040.00417.63
8.1.180.0060.00318.10
8.1.170.0000.00818.65
8.1.160.0040.00422.04
8.1.150.0040.00418.61
8.1.140.0070.00017.52
8.1.130.0000.00717.84
8.1.120.0070.00017.40
8.1.110.0000.00717.41
8.1.100.0000.00817.52
8.1.90.0030.00317.50
8.1.80.0040.00417.36
8.1.70.0030.00317.42
8.1.60.0030.00617.48
8.1.50.0080.00017.58
8.1.40.0000.00817.58
8.1.30.0040.00417.52
8.1.20.0030.00517.75
8.1.10.0000.00717.47
8.1.00.0000.00917.57
8.0.300.0100.00018.77
8.0.290.0050.00317.18
8.0.280.0030.00318.46
8.0.270.0030.00317.14
8.0.260.0030.00316.76
8.0.250.0060.00017.02
8.0.240.0030.00516.94
8.0.230.0040.00416.85
8.0.220.0000.00716.81
8.0.210.0000.00716.80
8.0.200.0070.00316.85
8.0.190.0040.00416.88
8.0.180.0050.00316.92
8.0.170.0080.00016.96
8.0.160.0040.00416.93
8.0.150.0030.00316.89
8.0.140.0070.00016.78
8.0.130.0000.00513.37
8.0.120.0000.00816.87
8.0.110.0000.00716.96
8.0.100.0000.00716.74
8.0.90.0040.00416.96
8.0.80.0100.00616.89
8.0.70.0040.00416.77
8.0.60.0040.00416.87
8.0.50.0040.00416.84
8.0.30.0120.00717.11
8.0.20.0070.01317.40
8.0.10.0030.00516.89
8.0.00.0070.01016.63
7.4.330.0000.00515.13
7.4.320.0030.00316.51
7.4.300.0030.00316.49
7.4.290.0000.00716.46
7.4.280.0040.00416.50
7.4.270.0000.00716.42
7.4.260.0040.00416.57
7.4.250.0040.00416.55
7.4.240.0030.00516.65
7.4.230.0070.00016.56
7.4.220.0070.01016.65
7.4.210.0040.01116.65
7.4.200.0000.00716.54
7.4.190.0030.00516.60
7.4.160.0060.01016.61
7.4.150.0100.00717.40
7.4.140.0070.01017.86
7.4.130.0030.01316.48
7.4.120.0100.01016.57
7.4.110.0090.01216.64
7.4.100.0120.00616.56
7.4.90.0120.00616.63
7.4.80.0030.01719.39
7.4.70.0040.01216.68
7.4.60.0090.00916.37
7.4.50.0000.00816.52
7.4.40.0090.00322.77
7.4.30.0090.00616.35
7.4.00.0120.00315.20
7.3.330.0000.00613.29
7.3.320.0000.00513.13
7.3.310.0020.00516.23
7.3.300.0030.00316.39
7.3.290.0070.01316.27
7.3.280.0080.01016.26
7.3.270.0100.00717.40
7.3.260.0100.01316.59
7.3.250.0110.00916.46
7.3.240.0120.00416.38
7.3.230.0030.01316.63
7.3.210.0030.01316.27
7.3.200.0090.01219.39
7.3.190.0150.00316.34
7.3.180.0090.00616.56
7.3.170.0080.00916.28
7.3.160.0110.00816.49
7.3.120.0030.01314.94
7.3.00.0030.01016.70
7.2.330.0130.00316.79
7.2.320.0090.00916.59
7.2.310.0070.01016.86
7.2.300.0090.01216.53
7.2.290.0070.02016.78
7.2.130.0040.00716.88
7.2.120.0000.01116.90
7.2.110.0000.00916.95
7.2.100.0090.00616.88
7.2.90.0030.01017.02
7.2.80.0040.00816.95
7.2.70.0100.00316.65
7.2.60.0030.01216.99
7.2.50.0060.00616.77
7.2.40.0060.00616.87
7.2.30.0000.01016.95
7.2.20.0030.01116.81
7.2.10.0060.00617.01
7.2.00.0130.00616.88
7.1.250.0070.00715.15
7.1.240.0030.00615.68
7.1.230.0000.01215.87
7.1.220.0000.01515.76
7.1.210.0030.01015.80
7.1.200.0030.00715.57
7.1.190.0070.00715.54
7.1.180.0120.00315.81
7.1.170.0060.00315.80
7.1.160.0030.00715.74
7.1.150.0070.00715.45
7.1.140.0090.00615.52
7.1.130.0060.00615.55
7.1.120.0100.00315.68
7.1.110.0050.00515.91
7.1.100.0040.00715.77
7.1.90.0040.01115.69
7.1.80.0140.00015.41
7.1.70.0070.00916.42
7.1.60.0110.00817.48
7.1.50.0070.00616.33
7.1.40.0030.01015.58
7.1.30.0100.00315.88
7.1.20.0030.01215.78
7.1.10.0060.00315.70
7.1.00.0020.04419.14
7.0.330.0140.00015.05
7.0.320.0110.00415.37
7.0.310.0100.00415.33
7.0.300.0040.01115.18
7.0.290.0000.00815.23
7.0.280.0000.01215.14
7.0.270.0070.00315.18
7.0.260.0040.01215.11
7.0.250.0100.00715.21
7.0.240.0030.00715.28
7.0.230.0080.00415.01
7.0.220.0040.00715.43
7.0.210.0080.00315.32
7.0.200.0040.00615.90
7.0.190.0000.01515.36
7.0.180.0070.00715.44
7.0.170.0030.00615.15
7.0.160.0100.00315.31
7.0.150.0030.00615.30
7.0.140.0030.03818.77
7.0.130.0000.01015.26
7.0.120.0040.00815.18
7.0.110.0060.00615.34
7.0.100.0030.02817.66
7.0.90.0200.03717.47
7.0.80.0060.03817.62
7.0.70.0080.04317.68
7.0.60.0170.02017.58
7.0.50.0140.02717.74
7.0.40.0030.02616.71
7.0.30.0060.02916.78
7.0.20.0060.03816.73
7.0.10.0080.02216.71
7.0.00.0070.02316.62
5.6.380.0000.01414.35
5.6.370.0060.00314.28
5.6.360.0060.00614.33
5.6.350.0030.00914.06
5.6.340.0140.00014.19
5.6.330.0030.01014.14
5.6.320.0000.01214.46
5.6.310.0110.00414.16
5.6.300.0000.01014.48
5.6.290.0000.01214.21
5.6.280.0100.03517.76
5.6.270.0040.00814.23
5.6.260.0060.00614.17
5.6.250.0090.04217.60
5.6.240.0070.02717.55
5.6.230.0020.04617.42
5.6.220.0100.02517.52
5.6.210.0050.04017.38
5.6.200.0110.02317.69
5.6.190.0020.02817.69
5.6.180.0100.04017.61
5.6.170.0040.03517.47
5.6.160.0030.02817.81
5.6.150.0090.02217.62
5.6.140.0030.02717.70
5.6.130.0030.02617.48
5.6.120.0050.02717.55
5.6.110.0070.02217.51
5.6.100.0070.02017.64
5.6.90.0030.02517.66
5.6.80.0030.02017.25
5.6.70.0050.02017.36
5.6.60.0010.02117.40
5.6.50.0060.02017.19
5.6.40.0070.01817.26
5.6.30.0030.02617.27
5.6.20.0060.02317.37
5.6.10.0050.01817.32
5.6.00.0060.01717.31
5.5.380.0130.03415.78
5.5.370.0050.02515.77
5.5.360.0070.02715.86
5.5.350.0050.05015.81
5.5.340.0120.03716.04
5.5.330.0070.02216.01
5.5.320.0090.03015.98
5.5.310.0040.02916.05
5.5.300.0080.01816.07
5.5.290.0050.02416.04
5.5.280.0060.02015.91
5.5.270.0050.02015.99
5.5.260.0050.02516.03
5.5.250.0000.03115.97
5.5.240.0030.02215.72
5.5.230.0050.01915.59
5.5.220.0020.02315.69
5.5.210.0030.02115.66
5.5.200.0070.01515.71
5.5.190.0060.01815.70
5.5.180.0020.02315.71
5.5.170.0090.00311.18
5.5.160.0020.02215.74
5.5.150.0050.01815.70
5.5.140.0070.02215.66
5.5.130.0050.01915.64
5.5.120.0060.01815.72
5.5.110.0060.02015.69
5.5.100.0040.02415.58
5.5.90.0070.02115.71
5.5.80.0040.02515.63
5.5.70.0050.03615.65
5.5.60.0050.01815.63
5.5.50.0030.02215.57
5.5.40.0080.02015.59
5.5.30.0060.02515.57
5.5.20.0010.03815.62
5.5.10.0100.02915.61
5.5.00.0040.02615.61
5.4.450.0050.02215.34
5.4.440.0040.02415.25
5.4.430.0050.01815.22
5.4.420.0030.02315.27
5.4.410.0060.02015.14
5.4.400.0000.02215.12
5.4.390.0020.02115.04
5.4.380.0030.02815.17
5.4.370.0060.01515.18
5.4.360.0060.02015.21
5.4.350.0020.02015.12
5.4.340.0050.02215.21
5.4.330.0000.00711.18
5.4.320.0030.01915.01
5.4.310.0030.02815.19
5.4.300.0100.01815.20
5.4.290.0030.02515.19
5.4.280.0050.03815.17
5.4.270.0040.02015.19
5.4.260.0030.02315.11
5.4.250.0030.02215.10
5.4.240.0020.02615.18
5.4.230.0050.02115.10
5.4.220.0060.02315.10
5.4.210.0070.02415.15
5.4.200.0080.03715.13
5.4.190.0040.02915.17
5.4.180.0040.02515.11
5.4.170.0070.04015.18
5.4.160.0070.02715.12
5.4.150.0050.02615.19
5.4.140.0050.03813.77
5.4.130.0030.04313.76
5.4.120.0030.02613.81
5.4.110.0070.03513.82
5.4.100.0060.02813.84
5.4.90.0060.03613.78
5.4.80.0030.02513.78
5.4.70.0070.03813.82
5.4.60.0030.03013.81
5.4.50.0100.03313.76
5.4.40.0000.03813.85
5.4.30.0070.03413.73
5.4.20.0100.03013.74
5.4.10.0070.03513.80
5.4.00.0080.03013.47
5.3.290.0040.02012.91
5.3.280.0050.03812.85
5.3.270.0080.03812.90
5.3.260.0080.02812.88
5.3.250.0020.02612.87
5.3.240.0090.03412.90
5.3.230.0100.04012.90
5.3.220.0080.03612.84
5.3.210.0020.04512.88
5.3.200.0040.03112.86
5.3.190.0050.04212.89
5.3.180.0020.04212.84
5.3.170.0070.04012.92
5.3.160.0030.02212.85
5.3.150.0060.03612.94
5.3.140.0030.03412.88
5.3.130.0050.04012.88
5.3.120.0060.03712.93
5.3.110.0060.03612.94
5.3.100.0030.04112.61
5.3.90.0080.03812.58
5.3.80.0070.03512.56
5.3.70.0080.03812.57
5.3.60.0060.03112.65
5.3.50.0080.03712.59
5.3.40.0000.04012.52
5.3.30.0070.04112.61
5.3.20.0080.03312.47
5.3.10.0020.03712.41
5.3.00.0050.03812.41
5.2.170.0040.03011.64
5.2.160.0070.03011.64
5.2.150.0060.03111.64
5.2.140.0060.03211.64
5.2.130.0060.03011.64
5.2.120.0070.02011.64
5.2.110.0050.03311.64
5.2.100.0030.03211.64
5.2.90.0030.02111.64
5.2.80.0010.03611.64
5.2.70.0010.03511.64
5.2.60.0050.02711.64
5.2.50.0010.02611.64
5.2.40.0040.03111.64
5.2.30.0040.03011.64
5.2.20.0030.02811.64
5.2.10.0020.02011.64
5.2.00.0000.03511.64
5.1.60.0050.02811.64
5.1.50.0100.02311.64
5.1.40.0040.02211.64
5.1.30.0030.03011.64
5.1.20.0050.02311.64
5.1.10.0030.03111.64
5.1.00.0020.03011.64
5.0.50.0050.02011.64
5.0.40.0020.02411.64
5.0.30.0030.03211.64
5.0.20.0000.02011.64
5.0.10.0030.02311.64
5.0.00.0050.02711.64
4.4.90.0000.01211.64
4.4.80.0030.01811.64
4.4.70.0050.01711.64
4.4.60.0000.02011.64
4.4.50.0020.01211.64
4.4.40.0020.02011.64
4.4.30.0020.02011.64
4.4.20.0030.01711.64
4.4.10.0060.01711.64
4.4.00.0000.01811.64
4.3.110.0000.01311.64
4.3.100.0030.01811.64
4.3.90.0050.01511.64
4.3.80.0000.02411.64
4.3.70.0030.01811.64
4.3.60.0010.01011.64
4.3.50.0020.02011.64
4.3.40.0020.02811.64
4.3.30.0030.02011.64
4.3.20.0050.01311.64
4.3.10.0010.01811.64
4.3.00.0050.01211.64

preferences:
44.56 ms | 401 KiB | 5 Q