3v4l.org

run code in 300+ PHP versions simultaneously
<?php // string, null, bool, float, largest specified previous index function isIndexedArray($array) { return !(bool)count(array_filter(array_keys($array), 'is_string')); } assert(isIndexedArray(['a' => 1]));

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.0140.00018.30
8.3.50.0040.01118.18
8.3.40.0110.00418.89
8.3.30.0070.00718.90
8.3.20.0070.00020.17
8.3.10.0000.00723.61
8.3.00.0050.00319.38
8.2.180.0070.00718.17
8.2.170.0140.00722.96
8.2.160.0110.00420.44
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0030.00617.63
8.2.120.0030.00526.35
8.2.110.0030.00719.38
8.2.100.0060.00617.78
8.2.90.0040.00419.17
8.2.80.0050.00317.97
8.2.70.0100.00017.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00619.45
8.2.30.0040.00420.69
8.2.20.0040.00417.77
8.2.10.0040.00418.04
8.2.00.0030.00617.97
8.1.280.0100.01025.92
8.1.270.0100.00023.75
8.1.260.0000.00828.09
8.1.250.0050.00328.09
8.1.240.0070.00321.30
8.1.230.0080.00317.42
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0030.00617.10
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0070.00022.01
8.1.150.0080.00018.74
8.1.140.0040.00419.49
8.1.130.0030.00317.60
8.1.120.0030.00417.42
8.1.110.0030.00617.32
8.1.100.0040.00417.30
8.1.90.0050.00217.38
8.1.80.0000.00817.42
8.1.70.0070.00017.33
8.1.60.0030.00517.56
8.1.50.0030.00917.36
8.1.40.0060.00317.46
8.1.30.0000.00817.59
8.1.20.0070.00017.50
8.1.10.0000.00917.37
8.1.00.0060.00617.44
8.0.300.0050.00218.77
8.0.290.0040.00416.75
8.0.280.0000.00818.45
8.0.270.0030.00317.26
8.0.260.0070.00017.17
8.0.250.0000.00717.06
8.0.240.0000.00817.04
8.0.230.0000.00716.97
8.0.220.0000.00916.87
8.0.210.0000.00716.97
8.0.200.0030.00317.02
8.0.190.0040.00417.02
8.0.180.0050.00316.85
8.0.170.0030.00617.00
8.0.160.0070.00017.01
8.0.150.0000.00716.93
8.0.140.0070.00016.91
8.0.130.0030.00613.37
8.0.120.0060.00316.80
8.0.110.0040.00416.91
8.0.100.0070.00016.91
8.0.90.0040.00416.93
8.0.80.0100.01016.95
8.0.70.0040.00417.07
8.0.60.0030.00516.78
8.0.50.0040.00416.84
8.0.30.0080.01017.04
8.0.20.0090.00917.40
8.0.10.0000.00816.98
8.0.00.0120.00616.67
7.4.330.0020.00216.89
7.4.320.0030.00316.42
7.4.300.0030.00316.45
7.4.290.0070.00016.54
7.4.280.0040.00416.57
7.4.270.0030.00316.49
7.4.260.0040.00416.38
7.4.250.0040.00416.52
7.4.240.0030.00316.48
7.4.230.0030.00316.44
7.4.220.0120.00916.36
7.4.210.0060.00916.39
7.4.200.0030.00316.62
7.4.160.0030.01216.59
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0100.00916.39
7.4.120.0110.00616.58
7.4.110.0040.01416.63
7.4.100.0160.00716.66
7.4.90.0070.01016.46
7.4.80.0100.01319.39
7.4.70.0070.01016.57
7.4.60.0060.00916.32
7.4.50.0030.01016.69
7.4.40.0110.00616.38
7.4.30.0140.00316.54
7.4.00.0070.01015.08
7.3.330.0000.00513.28
7.3.320.0030.00213.39
7.3.310.0070.00016.23
7.3.300.0000.00716.22
7.3.290.0150.00416.33
7.3.280.0110.00816.33
7.3.270.0100.00717.40
7.3.260.0130.00316.48
7.3.250.0060.01316.41
7.3.240.0070.00916.46
7.3.230.0090.00916.39
7.3.210.0100.00716.32
7.3.200.0070.01016.37
7.3.190.0120.00616.37
7.3.180.0030.01316.34
7.3.170.0070.01016.59
7.3.160.0060.00916.55
7.2.330.0130.00316.58
7.2.320.0100.00716.48
7.2.310.0150.00316.79
7.2.300.0090.00916.46
7.2.290.0090.00916.72
7.2.60.0000.00816.97
7.2.00.0000.01519.57
7.1.200.0030.01015.53
7.1.100.0040.00418.14
7.1.70.0050.00217.29
7.1.60.0140.01019.12
7.1.50.0000.02117.09
7.1.00.0030.07722.45
7.0.200.0150.00016.77
7.0.60.0000.04319.93
7.0.50.0070.06317.96
7.0.40.0130.08320.11
7.0.30.0070.05020.26
7.0.20.0230.05020.23
7.0.10.0070.08720.04
7.0.00.0100.09020.08
5.6.280.0030.03021.10
5.6.210.0100.07720.47
5.6.200.0030.04318.19
5.6.190.0070.04320.41
5.6.180.0170.04020.61
5.6.170.0300.08020.54
5.6.160.0170.07020.49
5.6.150.0100.08318.23
5.6.140.0100.07718.24
5.6.130.0030.06018.21
5.6.120.0100.08320.86
5.6.110.0100.08021.05
5.6.100.0070.05021.09
5.6.90.0070.06020.96
5.6.80.0100.07720.38
5.5.350.2670.03720.32
5.5.340.0030.04318.09
5.5.330.0170.04720.42
5.5.320.0070.08020.34
5.5.310.0270.04320.26
5.5.300.0100.06717.98
5.5.290.0070.05317.98
5.5.280.0100.03320.77
5.5.270.0170.07720.87
5.5.260.0130.04320.64
5.5.250.0070.08020.61
5.5.240.0330.07020.18

preferences:
37.14 ms | 400 KiB | 5 Q