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.70.0090.00916.38
8.3.60.0040.01216.75
8.3.50.0180.00322.11
8.3.40.0040.01118.77
8.3.30.0090.00618.69
8.3.20.0040.00420.29
8.3.10.0040.00423.53
8.3.00.0040.00419.13
8.2.190.0110.00616.58
8.2.180.0070.01416.38
8.2.170.0120.00322.96
8.2.160.0100.00720.52
8.2.150.0040.00424.18
8.2.140.0070.00324.66
8.2.130.0080.00017.50
8.2.120.0080.00026.35
8.2.110.0090.00022.33
8.2.100.0120.00018.03
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0000.00817.75
8.2.60.0050.00317.93
8.2.50.0000.00818.07
8.2.40.0000.00719.36
8.2.30.0040.00420.50
8.2.20.0030.00617.80
8.2.10.0000.00718.06
8.2.00.0070.00017.93
8.1.280.0040.01225.92
8.1.270.0060.00323.84
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0070.00319.15
8.1.220.0000.00917.74
8.1.210.0070.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0040.00421.92
8.1.150.0040.00418.74
8.1.140.0040.00419.57
8.1.130.0070.00017.69
8.1.120.0050.00217.39
8.1.110.0040.00417.36
8.1.100.0000.00817.39
8.1.90.0040.00417.34
8.1.80.0000.00717.25
8.1.70.0000.00717.42
8.1.60.0120.00017.42
8.1.50.0040.00417.37
8.1.40.0030.00517.44
8.1.30.0040.00717.63
8.1.20.0020.00517.53
8.1.10.0040.00417.49
8.1.00.0000.00917.47
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.38
8.0.270.0000.00717.30
8.0.260.0000.00917.20
8.0.250.0040.00417.01
8.0.240.0040.00416.94
8.0.230.0000.00816.95
8.0.220.0030.00616.68
8.0.210.0000.00716.83
8.0.200.0030.00316.90
8.0.190.0000.00916.88
8.0.180.0000.00716.96
8.0.170.0050.00316.96
8.0.160.0050.00216.95
8.0.150.0030.00316.92
8.0.140.0000.00816.78
8.0.130.0030.00313.41
8.0.120.0040.00416.81
8.0.110.0070.00016.95
8.0.100.0040.00416.81
8.0.90.0020.00517.07
8.0.80.0120.00316.89
8.0.70.0040.00416.90
8.0.60.0070.00016.91
8.0.50.0000.00816.97
8.0.30.0060.01116.95
8.0.20.0130.00817.40
8.0.10.0000.00816.96
8.0.00.0090.00816.81
7.4.330.0000.00516.73
7.4.320.0080.00016.45
7.4.300.0070.00016.54
7.4.290.0000.00716.41
7.4.280.0030.00516.55
7.4.270.0040.00416.55
7.4.260.0030.00316.42
7.4.250.0000.00716.41
7.4.240.0060.00116.51
7.4.230.0070.00016.49
7.4.220.0070.02016.34
7.4.210.0060.01316.50
7.4.200.0000.00716.61
7.4.160.0060.00916.26
7.4.150.0140.00317.40
7.4.140.0130.00717.86
7.4.130.0090.00816.46
7.4.120.0110.00716.40
7.4.110.0090.00916.43
7.4.100.0070.01416.31
7.4.90.0090.01016.47
7.4.80.0100.00719.39
7.4.70.0060.00916.68
7.4.60.0080.00816.40
7.4.50.0040.01216.55
7.4.40.0080.00916.44
7.4.30.0120.00316.27
7.4.10.0000.02015.09
7.4.00.0090.00614.90
7.3.330.0030.00313.32
7.3.320.0030.00313.18
7.3.310.0030.00316.39
7.3.300.0030.00316.36
7.3.290.0120.00516.34
7.3.280.0090.00816.36
7.3.270.0090.00917.40
7.3.260.0120.00616.35
7.3.250.0110.00616.43
7.3.240.0120.00516.41
7.3.230.0100.01316.41
7.3.210.0030.01316.47
7.3.200.0100.00616.46
7.3.190.0160.00316.45
7.3.180.0130.00316.44
7.3.170.0080.00816.57
7.3.160.0060.01016.48
7.3.130.0030.01614.85
7.3.120.0070.01014.86
7.3.110.0040.01514.77
7.3.100.0070.01014.91
7.3.90.0130.00314.87
7.3.80.0040.00814.79
7.3.70.0090.00614.80
7.3.60.0100.00314.93
7.3.50.0030.01014.67
7.3.40.0060.00914.89
7.3.30.0040.00414.85
7.3.20.0060.01016.75
7.3.10.0080.00616.57
7.3.00.0070.00616.67
7.2.330.0120.00616.65
7.2.320.0100.00916.60
7.2.310.0140.00716.67
7.2.300.0100.00716.51
7.2.290.0110.01116.57
7.2.260.0040.01515.18
7.2.250.0070.01014.95
7.2.240.0090.00315.19
7.2.230.0040.01414.95
7.2.220.0090.00915.12
7.2.210.0100.00315.08
7.2.200.0040.01114.89
7.2.190.0030.01414.99
7.2.180.0000.01015.04
7.2.170.0050.00514.93
7.2.160.0030.01415.15
7.2.150.0140.00016.91
7.2.140.0030.00716.94
7.2.130.0080.00716.84
7.2.120.0090.00616.79
7.2.110.0070.00816.80
7.2.100.0050.00816.89
7.2.90.0080.00916.85
7.2.80.0110.00516.93
7.2.70.0080.00616.85
7.2.60.0050.00816.88
7.2.50.0050.00816.81
7.2.40.0090.00816.94
7.2.30.0080.00716.97
7.2.20.0080.00716.90
7.2.10.0090.00716.83
7.2.00.0040.00917.37
7.1.330.0090.00615.80
7.1.320.0040.01215.77
7.1.310.0110.00415.80
7.1.300.0070.00715.83
7.1.290.0030.01015.54
7.1.280.0070.00715.46
7.1.270.0060.00615.62
7.1.260.0000.01015.80
7.1.250.0090.00715.65
7.1.240.0070.00615.71
7.1.230.0030.00815.69
7.1.220.0060.00815.79
7.1.210.0030.00915.70
7.1.200.0070.00715.75
7.1.190.0020.01015.58
7.1.180.0030.00815.61
7.1.170.0040.00915.75
7.1.160.0060.00815.70
7.1.150.0050.01015.72
7.1.140.0110.00415.71
7.1.130.0060.00615.83
7.1.120.0060.00615.65
7.1.110.0050.00815.63
7.1.100.0050.00616.45
7.1.90.0070.00615.76
7.1.80.0040.00515.65
7.1.70.0040.00916.08
7.1.60.0110.00616.84
7.1.50.0070.00816.07
7.1.40.0030.00915.51
7.1.30.0050.00715.78
7.1.20.0020.01215.65
7.1.10.0030.01315.80
7.1.00.0040.02817.80
7.0.330.0050.00915.19
7.0.320.0070.00615.40
7.0.310.0060.00915.31
7.0.300.0060.00715.32
7.0.290.0100.00515.33
7.0.280.0030.01115.27
7.0.270.0060.00915.24
7.0.260.0020.00815.24
7.0.250.0080.00815.35
7.0.240.0050.00815.24
7.0.230.0070.00515.31
7.0.220.0060.00515.44
7.0.210.0050.00915.33
7.0.200.0060.00515.71
7.0.190.0000.01315.32
7.0.180.0030.00915.40
7.0.170.0020.01015.19
7.0.160.0060.00615.15
7.0.150.0080.00515.29
7.0.140.0060.00615.20
7.0.130.0070.00415.52
7.0.120.0070.00715.47
7.0.110.0030.01215.24
7.0.100.0070.00115.33
7.0.90.0070.00715.39
7.0.80.0030.01015.13
7.0.70.0040.00615.29
7.0.60.0060.01816.88
7.0.50.0040.03416.20
7.0.40.0090.03015.73
7.0.30.0140.02615.75
7.0.20.0110.02015.74
7.0.10.0070.03515.88
7.0.00.0060.01915.73
5.6.400.0040.01113.95
5.6.390.0040.00714.54
5.6.380.0040.00814.49
5.6.370.0100.00514.26
5.6.360.0070.00514.43
5.6.350.0090.00614.19
5.6.340.0070.00514.12
5.6.330.0090.00614.34
5.6.320.0070.00914.34
5.6.310.0000.01314.38
5.6.300.0100.00514.25
5.6.290.0020.01114.20
5.6.280.0060.02816.41
5.6.270.0050.00814.24
5.6.260.0030.00914.18
5.6.250.0020.01014.12
5.6.240.0030.01114.30
5.6.230.0040.01014.46
5.6.220.0040.00714.24
5.6.210.0060.02016.47
5.6.200.0070.03015.46
5.6.190.0080.01916.27
5.6.180.0090.03016.35
5.6.170.0090.01816.26
5.6.160.0070.02316.39
5.6.150.0070.01915.47
5.6.140.0050.03415.62
5.6.130.0050.03115.55
5.6.120.0070.02116.53
5.6.110.0070.03516.48
5.6.100.0050.03316.55
5.6.90.0050.02016.40
5.6.80.0090.03016.35
5.6.70.0050.00314.11
5.6.60.0060.00514.24
5.6.50.0030.00614.19
5.6.40.0050.00814.09
5.6.30.0040.00614.23
5.6.20.0040.00914.19
5.6.10.0050.00814.10
5.6.00.0020.00914.33
5.5.380.0080.00512.60
5.5.370.0040.00712.64
5.5.360.0080.00012.68
5.5.350.1070.01615.21
5.5.340.0090.02614.21
5.5.330.0030.02015.18
5.5.320.0060.03015.05
5.5.310.0090.02315.21
5.5.300.0030.03114.32
5.5.290.0070.01814.43
5.5.280.0050.03115.30
5.5.270.0060.02815.33
5.5.260.0050.02815.22
5.5.250.0040.02815.09
5.5.240.0140.02415.05
5.5.230.0060.00612.70
5.5.220.0080.00312.48
5.5.210.0040.00512.73
5.5.200.0070.00512.69
5.5.190.0030.00812.75
5.5.180.0030.00412.69
5.5.170.0060.00612.37
5.5.160.0040.00812.70
5.5.150.0020.01112.82
5.5.140.0030.01012.66
5.5.130.0020.00812.59
5.5.120.0040.00412.65
5.5.110.0030.00912.43
5.5.100.0050.00212.58
5.5.90.0040.00712.51
5.5.80.0030.00512.47
5.5.70.0060.00312.53
5.5.60.0050.00812.57
5.5.50.0030.00712.65
5.5.40.0020.00912.55
5.5.30.0060.00212.51
5.5.20.0060.00512.56
5.5.10.0040.00412.52
5.5.00.0040.00512.46

preferences:
39.82 ms | 401 KiB | 5 Q