3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function isIndexedArray($array) { return !(bool)count(array_filter(array_keys($array), 'is_string')); } assert(isIndexedArray(['a' => ''])); assert(isIndexedArray(['a']));
based on QLfPU

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.3.00.0080.00816.38
7.2.130.0050.00516.92
7.2.120.0040.01116.95
7.2.110.0050.00516.64
7.2.100.0030.01416.90
7.2.90.0030.01316.98
7.2.80.0070.00716.98
7.2.70.0030.00617.03
7.2.60.0080.00516.95
7.2.50.0030.01316.99
7.2.40.0110.00316.89
7.2.30.0060.01016.85
7.2.20.0060.00916.96
7.2.10.0150.00316.84
7.2.00.0050.00618.13
7.1.250.0120.00315.91
7.1.240.0090.00615.80
7.1.230.0040.01115.86
7.1.220.0070.00315.85
7.1.210.0040.01115.83
7.1.200.0050.00715.57
7.1.190.0070.00715.81
7.1.180.0120.00315.73
7.1.170.0030.00715.90
7.1.160.0070.00715.73
7.1.150.0070.00715.55
7.1.140.0040.00815.82
7.1.130.0090.00615.54
7.1.120.0090.00615.79
7.1.110.0060.00915.87
7.1.100.0020.01116.90
7.1.90.0040.00715.85
7.1.80.0100.00315.63
7.1.70.0070.00316.57
7.1.60.0030.01617.50
7.1.50.0040.00716.24
7.1.40.0030.00915.59
7.1.30.0030.01015.76
7.1.20.0050.00515.70
7.1.10.0000.01015.63
7.1.00.0090.03419.07
7.0.330.0070.00715.38
7.0.320.0000.01515.29
7.0.310.0060.00915.27
7.0.300.0070.00715.38
7.0.290.0060.00615.39
7.0.280.0090.00015.32
7.0.270.0040.00715.44
7.0.260.0080.00415.18
7.0.250.0030.00615.12
7.0.240.0030.00615.51
7.0.230.0070.00715.28
7.0.220.0030.00615.37
7.0.210.0050.00315.08
7.0.200.0050.00915.98
7.0.190.0030.01315.34
7.0.180.0000.01315.14
7.0.170.0060.00315.56
7.0.160.0030.01215.47
7.0.150.0070.00715.27
7.0.140.0040.00715.43
7.0.130.0060.00615.22
7.0.120.0040.01115.48
7.0.110.0060.00615.51
7.0.100.0040.01215.04
7.0.90.0100.00315.18
7.0.80.0040.01115.29
7.0.70.0030.00615.01
7.0.60.0100.03717.58
7.0.50.0110.03816.72
7.0.40.0080.02916.87
7.0.30.0130.05016.78
7.0.20.0190.04216.80
7.0.10.0070.03816.92
7.0.00.0100.01816.74
5.6.380.0060.00614.25
5.6.370.0000.01314.18
5.6.360.0030.00614.23
5.6.350.0030.00614.52
5.6.340.0030.01013.91
5.6.330.0040.00414.09
5.6.320.0000.01314.01
5.6.310.0040.00813.99
5.6.300.0000.01314.10
5.6.290.0040.01114.04
5.6.280.0020.03417.68
5.6.270.0030.00714.18
5.6.260.0070.00714.27
5.6.250.0030.01214.16
5.6.240.0040.00414.00
5.6.230.0030.00713.99
5.6.220.0030.01014.02
5.6.210.0050.02517.49
5.6.200.0070.03516.06
5.6.190.0100.02717.53
5.6.180.0120.03817.30
5.6.170.0130.02317.23
5.6.160.0070.04517.40
5.6.150.0070.02516.12
5.6.140.0080.04016.21
5.6.130.0090.04116.26
5.6.120.0050.04417.53
5.6.110.0070.04517.56
5.6.100.0050.03517.54
5.6.90.0070.03817.52
5.6.80.0050.03717.19
5.6.70.0120.00313.84
5.6.60.0090.00313.89
5.6.50.0000.01313.98
5.6.40.0070.00713.69
5.6.30.0000.01113.96
5.6.20.0030.00613.73
5.6.10.0140.00013.90
5.6.00.0090.00314.28
5.5.380.0060.00611.18
5.5.370.0040.00711.18
5.5.360.0000.00611.18
5.5.350.2080.02515.80
5.5.340.0030.04514.62
5.5.330.0120.03815.65
5.5.320.0010.03115.81
5.5.310.0140.02215.74
5.5.300.0020.04714.61
5.5.290.0040.02914.58
5.5.280.0080.04215.96
5.5.270.0050.04416.00
5.5.260.0000.02716.01
5.5.250.0020.04515.93
5.5.240.0170.03715.76
5.5.230.0000.00711.18
5.5.220.0090.00311.18
5.5.210.0040.00411.18
5.5.200.0060.00611.18
5.5.190.0080.00411.18
5.5.180.0000.01011.18
5.5.170.0060.00611.18
5.5.160.0060.00611.18
5.5.150.0090.00311.18
5.5.140.0070.00011.18
5.5.130.0030.00711.26
5.5.120.0030.00311.18
5.5.110.0090.00011.18
5.5.100.0000.01311.18
5.5.90.0040.00411.18
5.5.80.0070.00311.18
5.5.70.0030.00911.18
5.5.60.0030.00711.18
5.5.50.0030.00311.18
5.5.40.0040.00811.18
5.5.30.0030.00311.18
5.5.20.0040.00411.20
5.5.10.0070.00311.23
5.5.00.0000.00811.18
5.4.450.0170.06319.70
5.4.440.0300.06019.33
5.4.430.0330.05019.46
5.4.420.0300.06019.28
5.4.410.0230.06719.30
5.4.400.0370.04319.01
5.4.390.0200.05718.97
5.4.380.0300.05719.32
5.4.370.0330.06319.15
5.4.360.0400.04319.28
5.4.350.0400.05319.36
5.4.340.0270.05319.00
5.4.320.0270.05019.38
5.4.310.0200.05319.15
5.4.300.0230.05019.30
5.4.290.0330.07019.25
5.4.280.0170.06019.15
5.4.270.0300.05718.84
5.4.260.0270.05719.25
5.4.250.0370.03719.11
5.4.240.0270.05719.27
5.4.230.0230.06719.02
5.4.220.0300.05319.27
5.4.210.0300.07319.27
5.4.200.0230.05319.27
5.4.190.0430.06719.23
5.4.180.0330.04318.96
5.4.170.0270.05018.99
5.4.160.0200.05718.98
5.4.150.0270.05319.10
5.4.140.0300.07316.38
5.4.130.0300.04316.37
5.4.120.0330.06316.51
5.4.110.0200.05716.43
5.4.100.0830.05016.52
5.4.90.0930.07016.52
5.3.290.0270.05014.58
5.3.280.0300.05014.61
5.3.270.0300.07314.50
5.3.260.0330.05014.82
5.3.250.0300.05014.65
5.3.240.0270.05014.57
5.3.230.0330.04714.75
5.3.220.0070.06014.73
5.3.210.0100.07314.63
5.3.200.0570.04714.48
5.3.190.1000.04314.48