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')); } print_r(isIndexedArray(null) === false);

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.0040.01416.75
8.3.50.0130.00821.89
8.3.40.0100.00718.84
8.3.30.0070.00718.71
8.3.20.0040.00420.04
8.3.10.0080.00023.51
8.3.00.0050.00219.25
8.2.180.0130.00616.63
8.2.170.0140.00422.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0060.00324.66
8.2.130.0090.00017.50
8.2.120.0030.00626.35
8.2.110.0030.00620.50
8.2.100.0080.00317.91
8.2.90.0040.00419.27
8.2.80.0060.00317.97
8.2.70.0040.00417.50
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0000.00819.26
8.2.30.0030.00720.67
8.2.20.0030.00617.66
8.2.10.0040.00417.98
8.2.00.0000.00717.95
8.1.280.0140.00425.92
8.1.270.0040.00423.84
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00423.91
8.1.230.0060.00618.90
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0090.00017.13
8.1.190.0000.00817.10
8.1.180.0050.00318.10
8.1.170.0040.00418.55
8.1.160.0000.00721.89
8.1.150.0040.00418.74
8.1.140.0000.00819.43
8.1.130.0070.00017.42
8.1.120.0030.00317.35
8.1.110.0000.00717.36
8.1.100.0000.00717.25
8.1.90.0030.00517.29
8.1.80.0030.00517.32
8.1.70.0030.00617.23
8.1.60.0040.00417.54
8.1.50.0070.00317.49
8.1.40.0060.00317.44
8.1.30.0060.00317.53
8.1.20.0040.00417.44
8.1.10.0000.00817.57
8.1.00.0060.00317.42
8.0.300.0050.00318.77
8.0.290.0060.00316.63
8.0.280.0030.00318.37
8.0.270.0030.00317.11
8.0.260.0030.00317.10
8.0.250.0030.00316.85
8.0.240.0060.00016.90
8.0.230.0070.00017.00
8.0.220.0000.00616.73
8.0.210.0000.00716.86
8.0.200.0030.00316.84
8.0.190.0030.00716.88
8.0.180.0050.00316.94
8.0.170.0000.00816.89
8.0.160.0040.00416.85
8.0.150.0000.00716.87
8.0.140.0030.00316.74
8.0.130.0030.00313.27
8.0.120.0000.00816.89
8.0.110.0000.00716.84
8.0.100.0070.00016.86
8.0.90.0040.00416.75
8.0.80.0120.00416.84
8.0.70.0000.00816.95
8.0.60.0000.00716.77
8.0.50.0080.00016.77
8.0.30.0110.00616.91
8.0.20.0110.00817.40
8.0.10.0040.00416.84
8.0.00.0110.00816.84
7.4.330.0050.00016.84
7.4.320.0030.00316.44
7.4.300.0070.00016.47
7.4.290.0030.00316.43
7.4.280.0040.00416.45
7.4.270.0030.00316.55
7.4.260.0030.00316.44
7.4.250.0070.00016.51
7.4.240.0030.00316.54
7.4.230.0000.00716.52
7.4.220.0070.01116.42
7.4.210.0000.01516.50
7.4.200.0030.00316.43
7.4.160.0120.00316.61
7.4.150.0120.00917.40
7.4.140.0050.01417.86
7.4.130.0100.00816.56
7.4.120.0150.00316.77
7.4.110.0100.00716.34
7.4.100.0060.01016.36
7.4.90.0120.00516.60
7.4.80.0080.00819.39
7.4.70.0100.00716.35
7.4.60.0090.00816.46
7.4.50.0080.00316.51
7.4.40.0030.01316.41
7.4.30.0030.01516.31
7.4.00.0050.00914.77
7.3.330.0000.00513.09
7.3.320.0030.00313.33
7.3.310.0030.00316.33
7.3.300.0040.00416.35
7.3.290.0080.00916.26
7.3.280.0140.00616.29
7.3.270.0040.01417.40
7.3.260.0130.00616.33
7.3.250.0120.00516.48
7.3.240.0060.01116.41
7.3.230.0120.00916.39
7.3.210.0060.00916.18
7.3.200.0100.00616.44
7.3.190.0110.00716.64
7.3.180.0090.00616.52
7.3.170.0120.01016.62
7.3.160.0090.00616.20
7.3.120.0070.01314.93
7.3.110.0070.01114.78
7.3.100.0110.00714.77
7.3.90.0040.00814.99
7.3.80.0090.00614.73
7.3.70.0070.00314.63
7.3.60.0100.00314.87
7.3.50.0060.00614.70
7.3.40.0080.00614.60
7.3.30.0090.00614.88
7.3.20.0070.00716.50
7.3.10.0100.00316.50
7.3.00.0060.00316.64
7.2.330.0070.01016.57
7.2.320.0040.01416.78
7.2.310.0110.00816.77
7.2.300.0070.01016.71
7.2.290.0100.00716.65
7.2.250.0120.00614.84
7.2.240.0100.00715.00
7.2.230.0030.01314.92
7.2.220.0070.00715.11
7.2.210.0040.01114.79
7.2.200.0090.00314.97
7.2.190.0040.01215.02
7.2.180.0030.01215.01
7.2.170.0090.00614.83
7.2.60.0050.00516.78
7.2.00.0000.01319.64
7.1.330.0030.01015.68
7.1.320.0090.00615.78
7.1.310.0110.00415.31
7.1.300.0040.00715.69
7.1.290.0030.00915.86
7.1.280.0040.01115.49
7.1.270.0080.00615.73
7.1.260.0060.00615.66
7.1.200.0040.01215.27
7.1.100.0030.01018.31
7.1.70.0040.00417.31
7.1.60.0090.01619.12
7.1.50.0040.00816.97
7.1.00.0000.08022.45
7.0.200.0090.00316.72
7.0.60.0070.07319.95
7.0.50.0130.07717.90
7.0.40.0100.04720.14
7.0.30.0200.06320.07
7.0.20.0200.04020.07
7.0.10.0130.08020.19
7.0.00.0070.05020.22
5.6.280.0070.04320.86
5.6.210.0100.07320.67
5.6.200.0070.03718.16
5.6.190.0100.06320.56
5.6.180.0200.08020.57
5.6.170.0300.06020.39
5.6.160.0070.04320.50
5.6.150.0030.08318.19
5.6.140.0100.07718.23
5.6.130.0100.07718.21
5.6.120.0070.05721.01
5.6.110.0130.09020.99
5.6.100.0100.08021.00
5.6.90.0100.03721.14
5.6.80.0070.06020.38
5.5.350.3830.04320.41
5.5.340.0130.07317.94
5.5.330.0000.04720.41
5.5.320.0030.08020.27
5.5.310.0370.03720.32
5.5.300.0030.04018.04
5.5.290.0070.07718.09
5.5.280.0030.04020.98
5.5.270.0070.04720.89
5.5.260.0070.05720.73
5.5.250.0070.05720.60
5.5.240.0400.06020.24

preferences:
45.23 ms | 401 KiB | 5 Q