3v4l.org

run code in 300+ PHP versions simultaneously
<?php $numeric = ['foo', 'bar', 'qux']; $assoc = ['foo' => 'something', 'bar' => 'else', 'qux' => 'ya']; function isNumericKey(array $array) { return is_numeric(implode(array_keys($array))); } var_dump(isNumericKey($numeric)); var_dump(isNumericKey($assoc));

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.0070.01116.49
8.3.50.0100.00821.98
8.3.40.0070.01018.42
8.3.30.0140.00019.11
8.3.20.0030.00620.23
8.3.10.0080.00023.38
8.3.00.0050.00319.09
8.2.180.0120.00318.54
8.2.170.0110.00422.96
8.2.160.0100.00320.18
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00420.85
8.2.110.0030.00622.24
8.2.100.0090.00317.72
8.2.90.0000.00719.14
8.2.80.0050.00317.97
8.2.70.0040.00417.25
8.2.60.0060.00317.80
8.2.50.0080.00018.07
8.2.40.0040.00419.94
8.2.30.0040.00418.09
8.2.20.0020.00517.64
8.2.10.0070.00017.98
8.2.00.0080.00017.70
8.1.280.0040.01125.92
8.1.270.0090.00023.81
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0000.00823.79
8.1.230.0050.00519.02
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0120.00017.22
8.1.190.0040.00417.22
8.1.180.0040.00418.10
8.1.170.0040.00418.42
8.1.160.0070.00021.94
8.1.150.0060.00318.52
8.1.140.0000.00717.38
8.1.130.0000.00717.80
8.1.120.0040.00417.36
8.1.110.0000.00717.40
8.1.100.0030.00517.43
8.1.90.0030.00717.35
8.1.80.0080.00417.41
8.1.70.0030.00317.36
8.1.60.0040.00417.61
8.1.50.0000.00817.48
8.1.40.0040.00417.51
8.1.30.0000.00817.55
8.1.20.0000.00717.66
8.1.10.0040.00417.45
8.1.00.0060.00317.35
8.0.300.0050.00218.77
8.0.290.0050.00317.05
8.0.280.0030.00318.37
8.0.270.0070.00017.23
8.0.260.0000.00617.18
8.0.250.0050.00216.92
8.0.240.0040.00416.91
8.0.230.0030.00316.89
8.0.220.0000.00716.74
8.0.210.0050.00216.72
8.0.200.0000.00716.84
8.0.190.0070.00016.93
8.0.180.0040.00416.78
8.0.170.0070.00016.83
8.0.160.0040.00416.70
8.0.150.0070.00016.76
8.0.140.0070.00016.66
8.0.130.0050.00013.13
8.0.120.0000.00816.81
8.0.110.0050.00216.84
8.0.100.0000.00716.84
8.0.90.0070.00016.89
8.0.80.0100.00716.78
8.0.70.0080.00016.72
8.0.60.0030.00516.76
8.0.50.0070.00016.90
8.0.30.0090.00916.89
8.0.20.0060.01617.40
8.0.10.0070.00016.97
8.0.00.0130.00516.63
7.4.330.0020.00215.00
7.4.320.0000.00716.54
7.4.300.0000.00616.56
7.4.290.0040.00416.49
7.4.280.0000.01016.66
7.4.270.0030.00316.50
7.4.260.0050.00316.43
7.4.250.0040.00416.59
7.4.240.0020.00516.54
7.4.230.0030.00316.51
7.4.220.0210.00416.55
7.4.210.0110.00916.60
7.4.200.0000.00716.38
7.4.190.0000.00716.49
7.4.160.0100.00716.51
7.4.150.0090.00917.40
7.4.140.0120.00517.86
7.4.130.0090.00716.38
7.4.120.0120.00516.42
7.4.110.0140.00316.30
7.4.100.0090.00916.33
7.4.90.0060.01216.33
7.4.80.0030.01719.39
7.4.70.0060.01016.52
7.4.60.0160.00016.38
7.4.50.0060.00316.27
7.4.40.0060.01316.53
7.4.30.0080.00816.48
7.4.00.0070.00714.82
7.3.330.0000.00513.24
7.3.320.0070.00013.04
7.3.310.0000.00716.27
7.3.300.0000.00616.23
7.3.290.0140.00016.23
7.3.280.0030.01616.20
7.3.270.0120.00617.40
7.3.260.0070.01016.40
7.3.250.0130.00516.26
7.3.240.0090.01316.46
7.3.230.0150.00316.46
7.3.210.0110.00616.23
7.3.200.0160.00819.39
7.3.190.0120.00616.30
7.3.180.0160.00016.19
7.3.170.0100.01016.65
7.3.160.0070.01016.32
7.3.120.0070.00714.69
7.2.330.0100.01016.31
7.2.320.0170.00716.30
7.2.310.0140.00916.53
7.2.300.0070.01016.65
7.2.290.0090.00916.40
7.2.00.0040.00418.81
7.1.100.0040.00818.21
7.1.70.0000.01017.27
7.1.60.0040.00919.46
7.1.50.0100.00716.72
7.1.00.0070.04322.57
7.0.200.0000.00816.60
7.0.140.0000.07721.95
7.0.60.0070.06719.79
7.0.50.0100.08017.87
7.0.40.0170.07720.10
7.0.30.0300.05020.06
7.0.20.0370.04320.33
7.0.10.0030.05020.31
7.0.00.0070.08020.08
5.6.280.0030.07321.02
5.6.210.0100.08020.65
5.6.200.0030.07718.13
5.6.190.0070.10020.52
5.6.180.0070.04320.59
5.6.170.0330.06720.54
5.6.160.0130.06320.39
5.6.150.0170.07718.18
5.6.140.0100.07718.18
5.6.130.0130.08318.15
5.6.120.0070.03721.15
5.6.110.0100.06321.00
5.6.100.0070.08020.96
5.6.90.0130.07321.04
5.6.80.0000.08720.41
5.5.350.0000.08320.32
5.5.340.0030.04017.98
5.5.330.0030.04020.13
5.5.320.0370.07020.36
5.5.310.0400.04020.27
5.5.300.0170.07717.93
5.5.290.0100.07718.07
5.5.280.0030.04020.80
5.5.270.0070.04720.71
5.5.260.0130.07720.68
5.5.250.0270.06720.46
5.5.240.0000.03320.26
5.4.450.0200.04731.64
5.4.440.0130.04728.38
5.4.430.0030.04324.42
5.4.420.0200.05023.34
5.4.410.0170.05021.44
5.4.400.0300.04320.00
5.4.390.0170.04019.48
5.4.380.0470.06018.80
5.4.370.0370.05718.58
5.4.360.0330.07018.72
5.4.350.0430.06718.49
5.4.340.0400.06318.49
5.4.320.0030.03912.50
5.4.310.0060.03712.50
5.4.300.0060.04012.50
5.4.290.0090.04112.50
5.4.280.0060.03812.40
5.4.270.0170.07812.39
5.4.260.0070.03912.40
5.4.250.0090.04012.40
5.4.240.0050.04212.40
5.4.230.0060.04112.39
5.4.220.0050.04212.39
5.4.210.0080.05512.39
5.4.200.0160.04712.39
5.4.190.0080.04612.38
5.4.180.0090.06212.38
5.4.170.0100.05512.39
5.4.160.0100.04812.39
5.4.150.0100.05312.39
5.4.140.0120.03812.07
5.4.130.0070.04112.06
5.4.120.0070.03712.01
5.4.110.0260.08712.01
5.4.100.0090.04212.02
5.4.90.0140.05812.01
5.4.80.0110.04712.02
5.4.70.0110.05712.01
5.4.60.0080.04712.01
5.4.50.0100.06712.01
5.4.40.0150.05412.00
5.4.30.0110.06111.99
5.4.20.0070.05211.99
5.4.10.0120.04311.99
5.4.00.0090.04111.48
5.3.290.0060.03912.80
5.3.280.0100.04912.71
5.3.270.0110.04412.73
5.3.260.0070.04612.72
5.3.250.0080.03812.71
5.3.240.0060.04312.72
5.3.230.0080.03912.70
5.3.220.0070.04012.68
5.3.210.0070.05012.68
5.3.200.0070.03912.68
5.3.190.0100.04012.68
5.3.180.0050.04512.67
5.3.170.0100.04612.67
5.3.160.0100.04812.68
5.3.150.0070.05012.67
5.3.140.0090.05412.66
5.3.130.0150.04812.66
5.3.120.0110.05112.66
5.3.110.0070.05212.66
5.3.100.0060.04212.12
5.3.90.0070.04212.08
5.3.80.0080.04512.07
5.3.70.0040.04912.07
5.3.60.0120.04512.06
5.3.50.0090.04812.00
5.3.40.0120.04612.00
5.3.30.0090.04911.95
5.3.20.0110.04611.73
5.3.10.0090.04911.70
5.3.00.0140.05511.68
5.2.170.0020.0509.18
5.2.160.0060.0439.18
5.2.150.0090.0459.18
5.2.140.0120.0429.18
5.2.130.0110.0419.14
5.2.120.0120.0429.14
5.2.110.0100.0409.15
5.2.100.0070.0459.14
5.2.90.0130.0589.14
5.2.80.0080.0459.14
5.2.70.0060.0499.14
5.2.60.0100.0599.09
5.2.50.0110.0409.06
5.2.40.0080.0379.04
5.2.30.0080.0409.01
5.2.20.0080.0379.00
5.2.10.0070.0358.93
5.2.00.0090.0358.78
5.1.60.0070.0338.06
5.1.50.0070.0378.07
5.1.40.0120.0318.05
5.1.30.0080.0368.40
5.1.20.0160.0318.42
5.1.10.0200.0708.14
5.1.00.0050.0348.14
5.0.50.0040.0296.62
5.0.40.0070.0246.47
5.0.30.0080.0356.30
5.0.20.0030.0256.27
5.0.10.0030.0326.24
5.0.00.0090.0376.23
4.4.90.0060.0214.78
4.4.80.0070.0264.75
4.4.70.0050.0204.76
4.4.60.0030.0214.76
4.4.50.0030.0204.77
4.4.40.0030.0334.71
4.4.30.0030.0204.76
4.4.20.0030.0214.84
4.4.10.0040.0184.85
4.4.00.0060.0254.75
4.3.110.0030.0214.67
4.3.100.0020.0174.66
4.3.90.0040.0194.63
4.3.80.0050.0374.58
4.3.70.0010.0214.63
4.3.60.0030.0214.63
4.3.50.0060.0184.63
4.3.40.0020.0314.54
4.3.30.0040.0193.28
4.3.20.0010.0223.26
4.3.10.0040.0213.22
4.3.00.0030.01718.76

preferences:
39.55 ms | 401 KiB | 5 Q