3v4l.org

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

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.0120.00618.33
8.3.50.0150.00721.98
8.3.40.0070.01418.71
8.3.30.0110.00418.53
8.3.20.0040.00420.29
8.3.10.0040.00423.44
8.3.00.0040.00419.26
8.2.180.0040.01218.41
8.2.170.0030.01022.96
8.2.160.0040.01120.39
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00917.38
8.2.120.0040.00426.35
8.2.110.0060.00320.52
8.2.100.0090.00317.93
8.2.90.0000.00819.30
8.2.80.0040.00417.97
8.2.70.0070.00317.75
8.2.60.0030.00617.90
8.2.50.0030.00518.07
8.2.40.0030.00519.38
8.2.30.0040.00420.63
8.2.20.0040.00417.62
8.2.10.0070.00018.17
8.2.00.0050.00318.09
8.1.280.0110.00325.92
8.1.270.0060.00323.82
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0090.00023.79
8.1.230.0060.00617.79
8.1.220.0000.00817.77
8.1.210.0090.00018.77
8.1.200.0080.00017.35
8.1.190.0070.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00618.59
8.1.160.0030.00522.05
8.1.150.0000.00818.83
8.1.140.0050.00319.61
8.1.130.0070.00017.61
8.1.120.0000.00717.36
8.1.110.0000.00817.46
8.1.100.0040.00417.35
8.1.90.0040.00417.45
8.1.80.0000.00817.44
8.1.70.0000.00717.33
8.1.60.0060.00317.55
8.1.50.0040.00417.50
8.1.40.0000.00717.55
8.1.30.0050.00317.66
8.1.20.0040.00417.68
8.1.10.0000.00717.36
8.1.00.0040.00417.34
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.34
8.0.270.0000.00717.16
8.0.260.0060.00017.16
8.0.250.0030.00316.84
8.0.240.0060.00016.86
8.0.230.0030.00616.97
8.0.220.0030.00316.77
8.0.210.0000.00816.77
8.0.200.0000.00716.91
8.0.190.0000.00716.95
8.0.180.0000.00716.84
8.0.170.0040.00416.81
8.0.160.0040.00416.78
8.0.150.0040.00416.78
8.0.140.0000.00716.69
8.0.130.0030.00313.30
8.0.120.0040.00416.80
8.0.110.0000.00716.87
8.0.100.0030.00516.84
8.0.90.0000.00716.69
8.0.80.0060.01416.93
8.0.70.0080.00016.93
8.0.60.0000.00816.73
8.0.50.0040.00416.91
8.0.30.0080.01116.99
8.0.20.0130.00617.40
8.0.10.0040.00416.99
8.0.00.0110.00616.77
7.4.330.0000.00615.08
7.4.320.0030.00316.40
7.4.300.0030.00616.52
7.4.290.0060.00016.52
7.4.280.0070.00016.40
7.4.270.0030.00316.51
7.4.260.0030.00316.50
7.4.250.0000.00816.53
7.4.240.0020.00516.51
7.4.230.0030.00316.57
7.4.220.0090.00916.62
7.4.210.0110.00316.61
7.4.200.0070.00016.59
7.4.160.0150.00616.61
7.4.150.0090.00917.40
7.4.140.0050.01317.86
7.4.130.0110.00716.56
7.4.120.0070.01216.50
7.4.110.0130.01016.40
7.4.100.0100.00716.37
7.4.90.0070.01116.61
7.4.80.0140.00619.39
7.4.70.0100.00716.46
7.4.60.0120.00316.47
7.4.50.0060.01216.23
7.4.40.0070.01016.64
7.4.30.0110.01116.55
7.4.00.0080.00614.92
7.3.330.0060.00313.21
7.3.320.0050.00013.22
7.3.310.0030.00316.13
7.3.300.0060.00016.28
7.3.290.0090.00716.15
7.3.280.0080.00816.24
7.3.270.0150.00917.40
7.3.260.0060.01616.61
7.3.250.0090.00916.33
7.3.240.0090.01116.37
7.3.230.0070.01016.39
7.3.210.0070.01016.23
7.3.200.0080.00816.31
7.3.190.0080.01316.41
7.3.180.0030.01316.46
7.3.170.0050.01116.27
7.3.160.0140.00316.39
7.3.120.0030.01714.75
7.3.110.0100.00314.57
7.3.100.0030.00914.34
7.3.90.0040.00414.88
7.3.80.0090.00314.68
7.3.70.0140.00014.67
7.3.60.0000.01514.89
7.3.50.0080.00014.73
7.3.40.0100.00714.74
7.3.30.0090.00614.78
7.3.20.0030.01016.30
7.3.10.0090.00616.70
7.3.00.0040.00716.60
7.2.330.0070.01016.50
7.2.320.0150.00616.68
7.2.310.0000.01616.36
7.2.300.0060.00916.46
7.2.290.0160.01016.53
7.2.250.0040.01515.00
7.2.240.0160.00315.13
7.2.230.0070.01114.75
7.2.220.0040.01114.96
7.2.210.0000.01714.64
7.2.200.0040.01114.96
7.2.190.0030.00614.77
7.2.180.0060.00815.06
7.2.170.0140.00315.10
7.1.330.0060.00815.88
7.1.320.0070.00715.74
7.1.310.0000.01115.79
7.1.300.0030.00615.70
7.1.290.0050.00815.48
7.1.280.0000.00915.85
7.1.270.0060.00315.77
7.1.260.0070.00315.82
7.1.70.0050.00317.00
7.1.60.0070.01419.36
7.1.50.0090.01516.62
7.1.00.0170.06322.36
7.0.200.1590.00316.79
7.0.60.0030.04019.93
7.0.50.0070.08017.87
7.0.40.0200.07320.11
7.0.30.0170.04720.17
7.0.20.0270.07020.27
7.0.10.0170.05720.26
7.0.00.0000.04320.23
5.6.280.0000.03320.91
5.6.210.0170.07020.75
5.6.200.0130.07318.24
5.6.190.0130.07320.45
5.6.180.4100.04320.57
5.6.170.0230.04320.50
5.6.160.0030.09320.55
5.6.150.0000.04718.16
5.6.140.0100.03318.18
5.6.130.0030.05018.16
5.6.120.0100.04320.89
5.6.110.0170.07021.02
5.6.100.0070.04021.01
5.6.90.0070.07021.04
5.6.80.0170.06720.41
5.5.350.4270.04020.50
5.5.340.0070.08017.99
5.5.330.0030.04320.41
5.5.320.0070.04720.25
5.5.310.0130.04320.34
5.5.300.0100.07318.08
5.5.290.0070.04017.96
5.5.280.0130.03320.77
5.5.270.0070.06320.87
5.5.260.0130.07720.93
5.5.250.0030.08320.68
5.5.240.0300.06720.26

preferences:
49.82 ms | 401 KiB | 5 Q