3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Ints extends ArrayObject { public function offsetGet($index) : int { var_dump('offsetGet'); return parent::offsetGet($index); } } $ints = new Ints([1,2,'foo']); for ($i = 0; $i < 3; $i++) { var_dump($ints[$i]); }

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.4.10.0030.00619.67
8.3.140.0150.00416.83
8.3.130.0040.00418.55
8.3.120.0000.00820.61
8.3.110.0060.00320.94
8.3.100.0060.00316.50
8.3.90.0050.00316.38
8.3.80.0040.00418.18
8.3.70.0130.00316.75
8.3.60.0090.00918.43
8.3.50.0060.00817.52
8.3.40.0190.00018.83
8.3.30.0120.00318.41
8.3.20.0040.00420.16
8.3.10.0040.00421.63
8.3.00.0080.00019.38
8.2.260.0080.00018.92
8.2.250.0090.00918.77
8.2.240.0000.00818.85
8.2.230.0060.00322.58
8.2.220.0090.00024.06
8.2.210.0100.01026.77
8.2.200.0060.00318.88
8.2.190.0090.00916.88
8.2.180.0120.00318.44
8.2.170.0030.01022.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00822.16
8.2.120.0110.00326.35
8.2.110.0090.00020.93
8.2.100.0120.00019.40
8.2.90.0000.00918.03
8.2.80.0000.00819.17
8.2.70.0050.00317.93
8.2.60.0000.00818.04
8.2.50.0000.00818.10
8.2.40.0040.00420.51
8.2.30.0050.00219.25
8.2.20.0080.00018.16
8.2.10.0000.00818.09
8.2.00.0030.00318.11
8.1.300.0050.00317.98
8.1.290.0080.00030.84
8.1.280.0120.00625.92
8.1.270.0000.00820.38
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0160.00022.14
8.1.230.0110.00020.91
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0060.00319.01
8.1.180.0050.00218.10
8.1.170.0080.00018.65
8.1.160.0040.00418.90
8.1.150.0050.00218.80
8.1.140.0000.00817.55
8.1.130.0000.00919.08
8.1.120.0040.00717.27
8.1.110.0000.00717.34
8.1.100.0040.00417.28
8.1.90.0080.00017.38
8.1.80.0040.00417.45
8.1.70.0000.00817.36
8.1.60.0000.00817.54
8.1.50.0040.00417.43
8.1.40.0040.00417.50
8.1.30.0090.00317.71
8.1.20.0080.00017.52
8.1.10.0050.00317.60
8.1.00.0040.00417.52
8.0.300.0000.00720.09
8.0.290.0000.00716.75
8.0.280.0040.00418.28
8.0.270.0000.00717.24
8.0.260.0000.00816.76
8.0.250.0070.00016.92
8.0.240.0030.00316.93
8.0.230.0050.00316.96
8.0.220.0030.00516.91
8.0.210.0030.00316.84
8.0.200.0030.00316.96
8.0.190.0050.00316.94
8.0.180.0040.00416.89
8.0.170.0080.00016.95
8.0.160.0070.00016.79
8.0.150.0110.00016.81
8.0.140.0030.00516.89
8.0.130.0040.00413.34
8.0.120.0050.00316.85
8.0.110.0000.00816.84
8.0.100.0040.00416.82
8.0.90.0050.00216.82
8.0.80.0150.00016.90
8.0.70.0040.00417.00
8.0.60.0000.00816.92
8.0.50.0070.00016.95
8.0.30.0130.00617.02
8.0.20.0090.00917.41
8.0.10.0030.00516.88
8.0.00.0090.00917.00
7.4.330.0000.00515.55
7.4.320.0000.00616.36
7.4.300.0030.00316.36
7.4.290.0000.00716.54
7.4.280.0000.00816.60
7.4.270.0000.00716.44
7.4.260.0080.00016.48
7.4.250.0030.00316.46
7.4.240.0030.00316.48
7.4.230.0040.00416.34
7.4.220.0000.00816.61
7.4.210.0120.00916.53
7.4.200.0030.00316.60
7.4.160.0070.01116.50
7.4.150.0070.01117.40
7.4.140.0100.01017.86
7.4.130.0060.01916.55
7.4.120.0080.01116.41
7.4.110.0120.00416.48
7.4.100.0130.00316.40
7.4.90.0090.00916.57
7.4.80.0080.01119.39
7.4.70.0130.00616.57
7.4.60.0100.00716.42
7.4.50.0080.00316.55
7.4.40.0060.01316.50
7.4.00.0070.00714.83
7.3.330.0060.00013.33
7.3.320.0000.00513.37
7.3.310.0070.00016.38
7.3.300.0030.00316.36
7.3.290.0110.00716.35
7.3.280.0090.00916.33
7.3.270.0130.01017.40
7.3.260.0140.00616.59
7.3.250.0070.01116.49
7.3.240.0100.00816.39
7.3.230.0080.00816.51
7.3.210.0060.00916.52
7.3.200.0030.01616.39
7.3.190.0060.00916.46
7.3.180.0080.01216.51
7.3.170.0070.01016.59
7.3.160.0120.00416.53
7.3.50.0090.01114.95
7.3.40.0070.00714.86
7.3.30.0140.00014.72
7.3.20.0040.01315.03
7.3.10.0090.00914.88
7.3.00.0050.01014.71
7.2.330.0110.00716.71
7.2.320.0090.00916.73
7.2.310.0100.01016.61
7.2.300.0110.00716.61
7.2.290.0130.00416.63
7.2.180.0050.00814.97
7.2.170.0070.00715.17
7.2.160.0070.00715.16
7.2.150.0070.01115.00
7.2.140.0130.00615.02
7.2.130.0080.00814.90
7.2.120.0110.00715.02
7.2.110.0060.01215.07
7.2.100.0150.00315.11
7.2.90.0140.00615.05
7.2.80.0170.01615.11
7.2.70.0120.00614.84
7.2.60.0080.00915.90
7.2.50.0190.00315.12
7.2.40.0090.00615.21
7.2.30.0070.01015.04
7.2.20.0170.00415.18
7.2.10.0320.00716.88
7.2.00.0260.00816.99
7.1.280.0080.00814.12
7.1.270.0470.00014.18
7.1.260.0120.01313.95
7.1.250.0110.00613.76
7.1.240.0080.01214.26
7.1.230.0160.00413.95
7.1.220.0210.00413.98
7.1.210.0200.01014.06
7.1.200.0130.00814.79
7.1.190.0240.00314.11
7.1.180.0080.01213.89
7.1.170.0240.00813.88
7.1.160.0150.00914.19
7.1.150.0200.00014.16
7.1.140.0170.00414.14
7.1.130.0240.01015.97
7.1.120.0270.00415.66
7.1.110.0300.00715.38
7.1.100.0220.01115.20
7.1.90.0300.00615.46
7.1.80.0230.01515.51
7.1.70.0340.00614.79
7.1.60.0320.01326.90
7.1.50.0300.01026.65
7.1.40.0310.01026.39
7.1.30.0420.00726.43
7.1.20.0390.01026.46
7.1.10.0260.00814.48
7.1.00.0320.00714.59
7.0.330.0140.00813.56
7.0.320.0210.00013.56
7.0.310.0180.00913.55
7.0.300.0190.00513.61
7.0.290.2000.01013.32
7.0.280.0220.00213.39
7.0.270.0270.01015.59
7.0.260.0290.00815.43
7.0.250.0260.00915.12
7.0.240.0280.00915.00
7.0.230.0340.01115.09
7.0.220.0310.00815.07
7.0.210.0480.00914.39
7.0.200.0360.00714.58
7.0.190.0360.01214.31
7.0.180.0380.01114.19
7.0.170.0330.01114.08
7.0.160.0360.01014.13
7.0.150.0270.00914.14
7.0.140.0270.01214.30
7.0.130.0280.01214.40
7.0.120.0350.00914.35
7.0.110.0400.01314.19
7.0.100.0340.00914.18
7.0.90.0270.00814.27
7.0.80.0340.01114.20
7.0.70.0250.00914.15
7.0.60.0220.01214.12
7.0.50.0310.00814.28
7.0.40.0280.00814.17
7.0.30.0290.00914.37
7.0.20.0310.00914.82
7.0.10.0290.00814.99
7.0.00.0210.01014.81
5.6.400.0120.00914.05
5.6.390.0000.02514.07
5.6.380.0080.00814.06
5.6.370.0110.00814.08
5.6.360.0100.01014.16
5.6.350.0130.00614.30
5.6.340.0110.00714.25
5.6.330.0140.01113.87
5.6.320.0050.02014.30
5.6.310.0160.00314.32
5.6.300.0140.04618.39
5.6.290.0160.04518.54
5.6.280.0110.04418.62
5.6.270.0160.04418.59
5.6.260.0170.04418.57
5.6.250.0130.04118.64
5.6.240.0170.04718.65
5.6.230.0170.04718.63
5.6.220.0180.04918.61
5.6.210.0170.04018.70
5.6.200.0120.04718.50
5.6.190.0120.04518.66
5.6.180.0130.04218.54
5.6.170.0150.04218.54
5.6.160.0110.05018.52
5.6.150.0140.05418.59
5.6.140.0160.04318.59
5.6.130.0220.03418.63
5.6.120.0190.03918.68
5.6.110.0170.04918.56
5.6.100.0140.04318.45
5.6.90.0100.04618.56
5.6.80.0150.03518.02
5.6.70.0130.04218.09
5.6.60.0080.04318.02
5.6.50.0130.03818.05
5.6.40.0120.04018.13
5.6.30.0100.04918.01
5.6.20.0130.05218.20
5.6.10.0130.04118.14
5.6.00.0080.04418.17
5.5.380.0180.00414.08
5.5.370.0170.01414.15
5.5.360.0180.00814.09
5.5.350.0160.01114.21
5.5.340.0170.01514.05
5.5.330.0120.00514.13
5.5.320.0210.01213.85
5.5.310.0160.01614.10
5.5.300.0170.00713.92
5.5.290.0210.00714.00
5.5.280.0230.00513.90
5.5.270.0130.01314.03
5.5.260.0220.00614.00
5.5.250.0080.00813.80
5.5.240.0130.00713.93
5.5.230.0160.00313.90
5.5.220.0040.01314.07
5.5.210.0160.00713.82
5.5.200.0070.00713.62
5.5.190.0080.01613.95
5.5.180.0150.00414.01
5.5.170.0210.00413.83
5.5.160.0160.00514.10
5.5.150.0140.01114.04
5.5.140.0220.01013.81
5.5.130.0240.00714.17
5.5.120.0200.01013.77
5.5.110.0160.00313.57
5.5.100.0110.00613.55
5.5.90.0160.00013.96
5.5.80.0120.01213.91
5.5.70.0200.00814.19
5.5.60.0130.00013.74
5.5.50.0090.00914.13
5.5.40.0120.00413.84
5.5.30.0060.01013.82
5.5.20.0200.00713.99
5.5.10.0090.00513.99
5.5.00.0040.02013.89
5.4.450.0130.01011.26
5.4.440.0170.00011.26
5.4.430.0200.00311.26
5.4.420.0070.01511.26
5.4.410.0070.00711.26
5.4.400.0070.00411.26
5.4.390.0080.00511.26
5.4.380.0080.00511.26
5.4.370.0130.00511.26
5.4.360.0080.00811.26
5.4.350.0100.00311.26
5.4.340.0050.00511.26
5.4.330.0150.00711.26
5.4.320.0030.00911.26
5.4.310.0070.00511.26
5.4.300.0140.00611.26
5.4.290.0160.00511.26
5.4.280.0110.00611.26
5.4.270.0050.00811.26
5.4.260.0040.00711.26
5.4.250.0140.00011.26
5.4.240.0080.00411.26
5.4.230.0090.00911.26
5.4.220.0090.00311.26
5.4.210.0090.00211.26
5.4.200.0100.00711.26
5.4.190.0100.00011.26
5.4.180.0060.01011.26
5.4.170.0070.01011.26
5.4.160.0090.00611.26
5.4.150.0110.00611.26
5.4.140.0080.01611.26
5.4.130.0110.00911.26
5.4.120.0080.00811.26
5.4.110.0120.00011.26
5.4.100.0030.01611.26
5.4.90.0130.00611.26
5.4.80.0090.00511.26
5.4.70.0080.00811.26
5.4.60.0090.00511.26
5.4.50.0150.00711.26
5.4.40.0070.00711.26
5.4.30.0110.00811.26
5.4.20.0080.00811.26
5.4.10.0120.00911.26
5.4.00.0090.00611.26
5.3.290.0110.00311.26
5.3.280.0070.01011.26
5.3.270.0120.00311.26
5.3.260.0110.00511.26
5.3.250.0070.01111.26
5.3.240.0150.00611.26
5.3.230.0180.00311.26
5.3.220.0090.00311.26
5.3.210.0000.01011.26
5.3.200.0130.00011.26
5.3.190.0160.00311.26
5.3.180.0120.00611.26
5.3.170.0170.00511.26
5.3.160.0060.00611.26
5.3.150.0090.00911.26
5.3.140.0070.01311.26
5.3.130.0100.00511.26
5.3.120.0130.00611.26
5.3.110.0120.00311.26
5.3.100.0070.00711.26
5.3.90.0080.01211.26
5.3.80.0200.00011.26
5.3.70.0040.01611.26
5.3.60.0110.01111.26
5.3.50.0200.00011.26
5.3.40.0100.00711.26
5.3.30.0140.00811.26
5.3.20.0110.01211.26
5.3.10.0080.00411.26
5.3.00.0080.00811.26
5.2.170.0050.00511.26
5.2.160.0080.00311.26
5.2.150.0140.00411.26
5.2.140.0170.00011.26
5.2.130.0080.00811.26
5.2.120.0090.00311.26
5.2.110.0120.00411.26
5.2.100.0080.00511.26
5.2.90.0070.00511.26
5.2.80.0170.00011.26
5.2.70.0090.00611.26
5.2.60.0090.00511.26
5.2.50.0100.00311.26
5.2.40.0070.01111.26
5.2.30.0110.00611.26
5.2.20.0060.00611.26
5.2.10.0080.00211.26
5.2.00.0040.00811.26
5.1.60.0080.00311.26
5.1.50.0050.00911.26
5.1.40.0100.00011.26
5.1.30.0040.00811.26
5.1.20.0060.00611.26
5.1.10.0100.00011.26
5.1.00.0050.00311.26
5.0.50.0100.00011.26
5.0.40.0070.00011.26
5.0.30.0040.00411.26
5.0.20.0070.00011.26
5.0.10.0070.00011.26
5.0.00.0000.00811.26
4.4.90.0040.00211.26
4.4.80.0070.00011.26
4.4.70.0000.00611.26
4.4.60.0030.00311.26
4.4.50.0000.01011.26
4.4.40.0070.00311.26
4.4.30.0080.00211.26
4.4.20.0040.00411.26
4.4.10.0050.00511.26
4.4.00.0040.00211.26
4.3.110.0000.00711.26
4.3.100.0000.00611.26
4.3.90.0000.00611.26
4.3.80.0050.00511.26
4.3.70.0000.00811.26
4.3.60.0050.00511.26
4.3.50.0060.00311.26
4.3.40.0060.00311.26
4.3.30.0000.01111.26
4.3.20.0030.00311.26
4.3.10.0050.00311.26
4.3.00.0060.00311.26

preferences:
34.21 ms | 403 KiB | 5 Q