3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array ( 0 => 'nested array', 1 => 'nested array', 2 => 'nested array', 3 => 'nested array', 5 => 'nested array', 7 => 'nested array', ); for ($key = 0; array_key_exists($key, $arr); $key++); var_dump($key);

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.70.0090.00618.55
8.3.60.0040.01118.06
8.3.50.0100.00621.02
8.3.40.0040.01118.68
8.3.30.0090.00618.93
8.3.20.0100.00320.21
8.3.10.0040.00421.91
8.3.00.0000.00822.37
8.2.180.0110.00718.16
8.2.170.0100.00322.96
8.2.160.0040.01120.39
8.2.150.0060.00924.18
8.2.140.0030.00624.66
8.2.130.0070.00726.16
8.2.120.0090.00019.66
8.2.110.0060.00322.29
8.2.100.0070.00419.28
8.2.90.0060.00319.11
8.2.80.0080.00017.97
8.2.70.0080.00617.38
8.2.60.0030.00918.04
8.2.50.0080.00018.07
8.2.40.0000.00718.03
8.2.30.0000.00718.09
8.2.20.0000.00717.67
8.2.10.0050.00317.57
8.2.00.0040.00417.60
8.1.280.0100.01025.92
8.1.270.0120.00320.36
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0060.00323.73
8.1.230.0090.00319.16
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.40
8.1.180.0040.00418.61
8.1.170.0000.00818.50
8.1.160.0070.00022.18
8.1.150.0000.00718.48
8.1.140.0000.00817.31
8.1.130.0030.00317.87
8.1.120.0030.00317.26
8.1.110.0070.00017.27
8.1.100.0000.00717.31
8.1.90.0040.00417.36
8.1.80.0050.00217.39
8.1.70.0000.00617.29
8.1.60.0030.00617.55
8.1.50.0060.00317.46
8.1.40.0040.00417.30
8.1.30.0030.00617.54
8.1.20.0000.00817.48
8.1.10.0040.00417.41
8.1.00.0120.00017.48
8.0.300.0000.00718.77
8.0.290.0030.00317.05
8.0.280.0070.00018.41
8.0.270.0070.00017.11
8.0.260.0030.00316.82
8.0.250.0030.00316.76
8.0.240.0090.00016.76
8.0.230.0030.00516.93
8.0.220.0070.00016.85
8.0.210.0060.00016.80
8.0.200.0060.00016.93
8.0.190.0000.00816.91
8.0.180.0000.00716.75
8.0.170.0050.00316.82
8.0.160.0040.00416.81
8.0.150.0040.00416.65
8.0.140.0040.00416.76
8.0.130.0030.00313.29
8.0.120.0040.00416.74
8.0.110.0070.00016.85
8.0.100.0000.00716.69
8.0.90.0000.00716.80
8.0.80.0060.00916.78
8.0.70.0000.00716.84
8.0.60.0050.00316.61
8.0.50.0000.00816.70
8.0.30.0140.00817.00
8.0.20.0150.00417.40
8.0.10.0050.00316.80
8.0.00.0140.00516.73
7.4.330.0000.00515.00
7.4.320.0000.00716.41
7.4.300.0000.00616.49
7.4.290.0000.00716.57
7.4.280.0000.00716.64
7.4.270.0070.00016.52
7.4.260.0050.00516.52
7.4.250.0100.00016.46
7.4.240.0030.00316.47
7.4.230.0000.00716.61
7.4.220.0070.01116.52
7.4.210.0100.00916.58
7.4.200.0000.00816.60
7.4.190.0040.00416.46
7.4.160.0090.00616.29
7.4.150.0030.01417.40
7.4.140.0120.00817.86
7.4.130.0110.00616.55
7.4.120.0090.00916.60
7.4.110.0100.01016.71
7.4.100.0120.00616.38
7.4.90.0140.00316.53
7.4.80.0090.01319.39
7.4.70.0150.00316.56
7.4.60.0100.00716.41
7.4.50.0030.00616.46
7.4.40.0050.00822.77
7.4.30.0130.00316.67
7.4.00.0040.01114.73
7.3.330.0030.00313.03
7.3.320.0060.00012.92
7.3.310.0030.00316.33
7.3.300.0040.00416.18
7.3.290.0110.00316.10
7.3.280.0080.00916.21
7.3.270.0120.01217.40
7.3.260.0090.01316.63
7.3.250.0150.00716.18
7.3.240.0130.01016.52
7.3.230.0060.01316.41
7.3.210.0110.00516.20
7.3.200.0100.00619.39
7.3.190.0100.00716.48
7.3.180.0110.00716.21
7.3.170.0060.01216.41
7.3.160.0140.00316.21
7.3.120.0070.00714.71
7.2.330.0090.00916.21
7.2.320.0160.00816.56
7.2.310.0120.00916.67
7.2.300.0070.01016.60
7.2.290.0060.00916.37
7.2.60.0100.00316.69
7.1.200.0030.00915.91
7.1.70.0070.00717.03
7.1.60.0030.00919.50
7.1.50.0040.01816.80
7.1.00.0000.07722.54
7.0.200.0000.01516.87
7.0.140.0100.06722.09
7.0.60.0030.05719.93
7.0.50.0030.07317.89
7.0.40.0100.07720.07
7.0.30.0230.06020.09
7.0.20.0330.07720.09
7.0.10.0330.07320.13
7.0.00.0030.05320.01
5.6.280.0100.06321.09
5.6.210.0100.07320.68
5.6.200.0130.07718.13
5.6.190.0030.06020.41
5.6.180.3230.04020.40
5.6.170.0300.08020.41
5.6.160.0030.08720.50
5.6.150.0070.08318.20
5.6.140.0030.04018.11
5.6.130.0100.04718.13
5.6.120.0030.04720.89
5.6.110.0100.05020.94
5.6.100.0130.05721.01
5.6.90.0330.07020.97
5.6.80.0070.05020.38
5.6.70.0130.07720.49
5.5.350.0270.06320.45
5.5.340.0030.08318.01
5.5.330.0070.05020.41
5.5.320.0170.04320.21
5.5.310.0100.04320.29
5.5.300.0100.06318.01
5.5.290.0130.07717.95
5.5.280.0030.04020.84
5.5.270.0100.05720.82
5.5.260.0070.08320.87
5.5.250.0030.04320.54
5.5.240.0070.06320.11
5.4.450.0870.06719.64
5.4.440.0930.07019.32
5.4.430.0830.05719.47
5.4.420.1130.05319.48
5.4.410.0930.06019.45
5.4.400.1200.05318.61
5.4.390.1070.04318.78
5.4.380.0370.04018.56
5.4.370.0170.05018.77
5.4.360.0130.05018.72
5.4.350.0080.03511.97
5.4.340.0080.03311.96
5.4.320.0060.04112.45
5.4.310.0060.04612.45
5.4.300.0040.03712.45
5.4.290.0060.04312.45
5.4.280.0060.04812.34
5.4.270.0060.04212.35
5.4.260.0090.03612.34
5.4.250.0100.05018.99
5.4.240.0130.04718.73
5.4.230.0100.05018.77
5.4.220.0170.05018.72
5.4.210.0130.04719.01
5.4.200.0170.06718.87
5.4.190.0070.05318.73
5.4.180.0100.05018.89
5.4.170.0070.05318.86
5.4.160.0170.04018.97
5.4.150.0070.05718.99
5.4.140.0030.05316.27
5.4.130.0130.04016.49
5.4.120.0070.05016.25
5.4.110.0070.05016.35
5.4.100.0100.04716.42
5.4.90.0100.04316.35
5.4.80.0030.05016.44
5.4.70.0100.05016.52
5.4.60.0100.06016.38
5.4.50.0030.05016.42
5.4.40.0170.03716.37
5.4.30.0070.06716.46
5.4.20.0070.05016.49
5.4.10.0100.06316.18
5.4.00.0100.04315.93
5.3.290.0060.04012.80
5.3.280.0100.04714.60
5.3.270.0070.05714.65
5.3.260.0030.05314.65
5.3.250.0100.04714.44
5.3.240.0100.05014.30
5.3.230.0100.04714.48
5.3.220.0100.04714.71
5.3.210.0030.05314.42
5.3.200.0030.05314.59
5.3.190.0070.05014.26
5.3.180.0000.05314.57
5.3.170.0070.07714.48
5.3.160.0170.06014.33
5.3.150.0100.05314.58
5.3.140.0100.04314.55
5.3.130.0130.04314.45
5.3.120.0070.05314.58
5.3.110.0130.04314.24
5.3.100.0100.04313.97
5.3.90.0070.05014.03
5.3.80.0070.05313.93
5.3.70.0100.04314.11
5.3.60.0100.04313.86
5.3.50.0000.06013.99
5.3.40.0070.05313.82
5.3.30.0030.05013.82
5.3.20.0070.06013.55
5.3.10.0070.04713.80
5.3.00.0030.05313.63
5.2.170.0000.04311.25
5.2.160.0030.04011.29
5.2.150.0070.03711.15
5.2.140.0130.04011.14
5.2.130.0070.03711.11
5.2.120.0030.04311.02
5.2.110.0030.04311.25
5.2.100.0130.03011.25
5.2.90.0070.03711.09
5.2.80.0070.05711.02
5.2.70.0130.03311.24
5.2.60.0030.04310.98
5.2.50.0030.04310.93
5.2.40.0070.04010.91
5.2.30.0030.04710.86
5.2.20.0100.03311.11
5.2.10.0100.04310.94
5.2.00.0070.05710.60
5.1.60.0170.02310.18
5.1.50.0070.03310.04
5.1.40.0030.0339.86
5.1.30.0070.03310.21
5.1.20.0030.03710.41
5.1.10.0030.0339.99
5.1.00.0070.03310.12
5.0.50.0000.0408.39
5.0.40.0100.0208.33
5.0.30.0000.0438.18
5.0.20.0000.0278.14
5.0.10.0030.0278.36
5.0.00.0000.0407.99
4.4.90.0000.0236.51
4.4.80.0030.0276.51
4.4.70.0000.0206.51
4.4.60.0000.0236.51
4.4.50.0030.0206.51
4.4.40.0000.0336.51
4.4.30.0030.0236.51
4.4.20.0030.0206.51
4.4.10.0030.0276.51
4.4.00.0000.0336.51
4.3.110.0000.0236.51
4.3.100.0030.0176.51
4.3.90.0030.0176.51
4.3.80.0000.0336.51
4.3.70.0070.0136.51
4.3.60.0000.0206.51
4.3.50.0000.0276.51
4.3.40.0000.0336.51
4.3.30.0000.0236.51
4.3.20.0070.0176.51
4.3.10.0000.0236.51
4.3.00.0130.0206.91

preferences:
54.53 ms | 401 KiB | 5 Q