3v4l.org

run code in 300+ PHP versions simultaneously
<?php function isIndexedArray($array) { return !(bool)count(array_filter(array_keys($array), 'is_string')); } assert(isIndexedArray(['a']));

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.0100.01016.38
8.3.50.0130.00621.99
8.3.40.0040.01118.81
8.3.30.0120.00318.84
8.3.20.0050.00320.16
8.3.10.0000.00723.53
8.3.00.0050.00319.38
8.2.180.0110.00418.17
8.2.170.0080.00822.96
8.2.160.0100.00720.52
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0040.00419.70
8.2.110.0080.00020.51
8.2.100.0070.00418.09
8.2.90.0050.00319.09
8.2.80.0040.00417.97
8.2.70.0050.00517.63
8.2.60.0000.00917.91
8.2.50.0030.00518.07
8.2.40.0040.00419.31
8.2.30.0070.00020.73
8.2.20.0030.00617.77
8.2.10.0000.00718.06
8.2.00.0040.00418.11
8.1.280.0070.01025.92
8.1.270.0060.00323.84
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00423.91
8.1.230.0070.00419.16
8.1.220.0000.00917.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0040.00417.22
8.1.180.0030.00618.10
8.1.170.0000.00918.55
8.1.160.0070.00022.01
8.1.150.0050.00218.74
8.1.140.0040.00419.44
8.1.130.0040.00417.55
8.1.120.0000.00717.30
8.1.110.0000.00717.41
8.1.100.0050.00317.38
8.1.90.0020.00517.32
8.1.80.0030.00517.24
8.1.70.0000.00717.34
8.1.60.0120.00017.51
8.1.50.0030.00617.49
8.1.40.0040.00417.42
8.1.30.0030.00917.55
8.1.20.0040.00417.60
8.1.10.0000.00717.29
8.1.00.0000.00717.35
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00518.39
8.0.270.0000.00717.20
8.0.260.0000.00617.07
8.0.250.0030.00316.97
8.0.240.0040.00416.89
8.0.230.0050.00316.98
8.0.220.0090.00016.79
8.0.210.0040.00416.96
8.0.200.0000.00616.84
8.0.190.0000.00916.85
8.0.180.0000.00816.91
8.0.170.0080.00016.77
8.0.160.0000.00716.96
8.0.150.0000.00716.84
8.0.140.0040.00416.82
8.0.130.0000.00713.30
8.0.120.0040.00416.90
8.0.110.0030.00416.80
8.0.100.0040.00416.94
8.0.90.0070.00016.75
8.0.80.0030.01316.92
8.0.70.0000.00816.81
8.0.60.0080.00016.81
8.0.50.0070.00016.77
8.0.30.0050.01217.22
8.0.20.0100.00917.40
8.0.10.0000.00817.03
8.0.00.0120.00816.74
7.4.330.0020.00215.08
7.4.320.0030.00316.58
7.4.300.0000.00616.54
7.4.290.0030.00316.58
7.4.280.0040.00416.41
7.4.270.0000.00716.57
7.4.260.0030.00316.52
7.4.250.0000.00816.53
7.4.240.0030.00316.53
7.4.230.0030.00316.44
7.4.220.0140.01416.58
7.4.210.0140.00016.49
7.4.200.0000.00716.34
7.4.160.0130.00316.33
7.4.150.0090.01017.40
7.4.140.0110.00917.86
7.4.130.0060.01316.60
7.4.120.0130.00516.44
7.4.110.0060.01516.59
7.4.100.0070.01016.44
7.4.90.0100.00916.55
7.4.80.0090.01319.39
7.4.70.0100.00616.42
7.4.60.0130.00316.38
7.4.50.0060.00916.68
7.4.40.0120.00616.58
7.4.30.0100.00616.47
7.4.00.0080.01014.95
7.3.330.0050.00013.22
7.3.320.0050.00013.18
7.3.310.0050.00216.29
7.3.300.0030.00316.41
7.3.290.0060.01016.30
7.3.280.0090.00816.33
7.3.270.0030.01417.40
7.3.260.0040.01416.33
7.3.240.0110.00716.38
7.3.230.0130.00616.39
7.3.210.0060.01016.36
7.3.200.0120.00316.54
7.3.190.0120.01216.38
7.3.180.0040.01216.35
7.3.170.0130.00516.30
7.3.160.0090.00616.55
7.3.120.0000.01415.00
7.3.110.0110.00714.88
7.3.100.0110.00414.48
7.3.90.0030.01014.78
7.3.80.0030.00714.80
7.3.70.0100.00714.67
7.3.60.0030.01014.86
7.3.50.0070.00714.87
7.3.40.0140.00014.48
7.3.30.0000.00914.79
7.3.20.0060.00916.71
7.3.10.0040.01116.58
7.3.00.0090.00616.36
7.2.330.0090.00916.41
7.2.320.0140.00316.41
7.2.310.0110.00816.66
7.2.300.0060.01016.75
7.2.290.0060.01016.68
7.2.250.0090.00914.99
7.2.240.0100.01015.21
7.2.230.0030.00614.75
7.2.220.0140.00315.04
7.2.210.0070.00714.87
7.2.200.0100.00715.05
7.2.190.0090.00315.10
7.2.180.0100.00715.20
7.2.170.0100.00714.77
7.2.60.0060.00616.70
7.2.00.0060.00319.51
7.1.330.0060.00615.64
7.1.320.0140.00015.84
7.1.310.0000.01415.44
7.1.300.0030.01315.81
7.1.290.0030.00915.71
7.1.280.0070.00715.55
7.1.270.0060.00315.73
7.1.260.0080.00615.81
7.1.200.0030.01015.55
7.1.100.0070.00717.62
7.1.70.0030.00616.96
7.1.60.0040.01919.12
7.1.50.0090.01216.91
7.1.00.0030.07722.48
7.0.200.0040.00416.44
7.0.60.0130.06320.03
7.0.50.0100.07717.88
7.0.40.0100.04320.11
7.0.30.0170.08320.06
7.0.20.0270.08020.09
7.0.10.0070.08720.23
7.0.00.0070.04020.16
5.6.280.0000.06020.78
5.6.210.0070.08020.54
5.6.200.0100.08018.16
5.6.190.0100.08320.52
5.6.180.0170.07320.55
5.6.170.0200.04020.54
5.6.160.0030.07720.43
5.6.150.0070.03718.18
5.6.140.0070.06318.17
5.6.130.0130.07018.23
5.6.120.0070.08720.97
5.6.110.0070.09321.06
5.6.100.0000.08321.12
5.6.90.0070.08720.96
5.6.80.0070.08020.53
5.5.350.4300.04320.35
5.5.340.0070.06317.99
5.5.330.0100.05020.43
5.5.320.0030.06320.32
5.5.310.0270.03320.28
5.5.300.0100.08018.09
5.5.290.0100.07717.93
5.5.280.0030.08320.80
5.5.270.0030.04720.72
5.5.260.0070.05720.87
5.5.250.0030.06720.71
5.5.240.0430.05720.19

preferences:
51.42 ms | 401 KiB | 5 Q