3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class a { static public function o() { return true;} } $cls = [ '' ]; foreach($cls as $cl) { echo var_export($cl, true); echo "\t"; echo "is_callable\n"; var_dump(is_callable($cl)); echo "is_callable by syntax\n"; var_dump(is_callable($cl,true)); echo "instance of closure\n"; var_dump($cl instanceof Closure); }

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.10.0100.00316.49
7.3.00.0030.01016.90
7.2.130.0040.00816.87
7.2.120.0000.01416.87
7.2.110.0070.01016.48
7.2.100.0060.00616.95
7.2.90.0060.01217.03
7.2.80.0040.00716.86
7.2.70.0000.01616.83
7.2.60.0000.01117.05
7.2.50.0030.01217.10
7.2.40.0100.00316.50
7.2.30.0080.00616.86
7.2.20.0000.01616.91
7.2.10.0040.01116.90
7.2.00.0080.00818.19
7.1.250.0080.00415.46
7.1.240.0070.00715.81
7.1.230.0030.00615.82
7.1.220.0110.00415.90
7.1.210.0030.01015.96
7.1.200.0070.00715.91
7.1.190.0060.00615.80
7.1.180.0030.01415.69
7.1.170.0080.00315.98
7.1.160.0030.00715.88
7.1.150.0040.00415.77
7.1.140.0060.00815.82
7.1.130.0070.00715.74
7.1.120.0060.00315.63
7.1.110.0030.01015.77
7.1.100.0050.00616.82
7.1.90.0070.01015.61
7.1.80.0030.01016.03
7.1.70.0040.00816.49
7.1.60.0100.01017.71
7.1.50.0090.00616.39
7.1.40.0000.01315.79
7.1.30.0090.00315.99
7.1.20.0080.00815.87
7.1.10.0090.00315.57
7.1.00.0020.04519.04
7.0.330.0080.00015.30
7.0.320.0060.00615.08
7.0.310.0100.00315.33
7.0.300.0030.00715.38
7.0.290.0070.00315.27
7.0.280.0130.00315.25
7.0.270.0080.00015.33
7.0.260.0000.00915.63
7.0.250.0030.00615.57
7.0.240.0070.00315.64
7.0.230.0030.01015.34
7.0.220.0000.01115.36
7.0.210.0090.00615.48
7.0.200.0100.00216.07
7.0.190.0100.00315.47
7.0.180.0090.00615.42
7.0.170.0090.00015.59
7.0.160.0040.00815.62
7.0.150.0030.01315.23
7.0.140.0020.03918.75
7.0.130.0060.00915.54
7.0.120.0050.00515.29
7.0.110.0060.01015.49
7.0.100.0030.00815.44
7.0.90.0060.00615.39
7.0.80.0090.00615.60
7.0.70.0030.00915.41
7.0.60.0030.04517.71
7.0.50.0070.03516.63
7.0.40.0110.04316.80
7.0.30.0150.04516.87
7.0.20.0150.02316.68
7.0.10.0100.04416.71
7.0.00.0080.03516.83
5.6.380.0000.01214.18
5.6.370.0090.00313.91
5.6.360.0040.00414.30
5.6.350.0080.00614.44
5.6.340.0040.00414.52
5.6.330.0110.00314.30
5.6.320.0120.00014.09
5.6.310.0030.00614.48
5.6.300.0040.01114.59
5.6.290.0110.00414.47
5.6.280.0050.03917.55
5.6.270.0030.00914.17
5.6.260.0000.01313.98
5.6.250.0110.00014.23
5.6.240.0070.00714.24
5.6.230.0060.00614.32
5.6.220.0110.00414.23
5.6.210.0040.04717.52
5.6.200.0060.04516.24
5.6.190.0020.04117.43
5.6.180.0100.04117.36
5.6.170.0160.04417.49
5.6.160.0050.04017.42
5.6.150.0050.04116.40
5.6.140.0070.04116.21
5.6.130.0080.02116.36
5.6.120.0120.03817.65
5.6.110.0090.04217.70
5.6.100.0050.04217.71
5.6.90.0070.04317.54
5.6.80.0040.04317.36
5.6.70.0150.00014.15
5.6.60.0070.00714.16
5.6.50.0100.00314.26
5.6.40.0000.01314.39
5.6.30.0040.01114.17
5.6.20.0060.00914.16
5.6.10.0100.00313.86
5.6.00.0000.01114.05
5.5.380.0000.00711.09
5.5.370.0050.00511.18
5.5.360.0060.00611.08
5.5.350.2100.02415.90
5.5.340.0130.02014.53
5.5.330.0030.03315.63
5.5.320.0220.03615.92
5.5.310.0170.02515.67
5.5.300.0030.02414.42
5.5.290.0030.04014.54
5.5.280.0020.04815.77
5.5.270.0130.03816.15
5.5.260.0080.04215.87
5.5.250.0020.02515.97
5.5.240.0030.03515.69
5.5.230.0040.00411.07
5.5.220.0030.00311.18
5.5.210.0040.00411.22
5.5.200.0030.00311.23
5.5.190.0080.00011.27
5.5.180.0030.00710.75
5.5.170.0030.00311.18
5.5.160.0050.00511.17
5.5.150.0040.00410.95
5.5.140.0030.00311.22
5.5.130.0070.00410.92
5.5.120.0040.00810.99
5.5.110.0000.00810.87
5.5.100.0100.00311.24
5.5.90.0000.00810.89
5.5.80.0090.00311.26
5.5.70.0040.00711.05
5.5.60.0030.00711.17
5.5.50.0040.00810.93
5.5.40.0060.00011.13
5.5.30.0030.00710.91
5.5.20.0000.00611.21
5.5.10.0030.00610.92
5.5.00.0030.00711.20
5.4.450.0230.02715.23
5.4.440.0160.02528.38
5.4.430.0430.03015.00
5.4.420.0280.02515.30
5.4.410.0060.02624.15
5.4.400.0130.02222.31
5.4.390.0180.02421.29
5.4.380.0070.03214.69
5.4.370.0080.03114.99
5.4.360.0120.03214.97
5.4.350.0150.02514.88
5.4.340.0090.03014.93
5.4.330.0060.00611.04
5.4.320.0070.01911.67
5.4.310.0040.02511.74
5.4.300.0020.02611.72
5.4.290.0100.02911.64
5.4.280.0020.02611.85
5.4.270.0070.02911.79
5.4.260.0060.02411.71
5.4.250.0100.02211.70
5.4.240.0050.02211.70
5.4.230.0060.02311.71
5.4.220.0060.02211.61
5.4.210.0080.02111.69
5.4.200.0070.02411.71
5.4.190.0050.02211.70
5.4.180.0040.02311.78
5.4.170.0060.02111.79
5.4.160.0070.02111.80
5.4.150.0060.02011.64
5.4.140.0060.02611.67
5.4.130.0050.02511.64
5.4.120.0110.03611.39
5.4.110.0040.02311.60
5.4.100.0060.02011.56
5.4.90.0060.02511.41
5.4.80.0100.03211.52
5.4.70.0070.02411.54
5.4.60.0060.03011.46
5.4.50.0100.02111.39
5.4.40.0100.03111.58
5.4.30.0040.02711.41
5.4.20.0050.02811.66
5.4.10.0050.02511.49
5.4.00.0070.02711.33
5.3.290.0060.02311.61
5.3.280.0090.02611.50
5.3.270.0050.02711.45
5.3.260.0070.02311.54
5.3.250.0070.02111.45
5.3.240.0080.03411.29
5.3.230.0060.03111.48
5.3.220.0060.02311.43
5.3.210.0070.02611.46
5.3.200.0040.02911.52
5.3.190.0070.03411.37
5.3.180.0050.02911.56
5.3.170.0060.02611.55
5.3.160.0040.02411.55
5.3.150.0070.02011.51
5.3.140.0090.02411.48
5.3.130.0050.02411.52
5.3.120.0030.02911.51
5.3.110.0110.02211.52
5.3.100.0040.02311.24
5.3.90.0040.02111.26
5.3.80.0050.02111.18
5.3.70.0060.02111.14
5.3.60.0040.02211.13
5.3.50.0040.02311.03
5.3.40.0030.02311.15
5.3.30.0050.02911.14
5.3.20.0070.02411.00
5.3.10.0040.02210.85
5.3.00.0030.02410.89
5.2.170.0020.0219.27
5.2.160.0030.0179.15
5.2.150.0050.0169.29
5.2.140.0040.0179.26
5.2.130.0050.0249.24
5.2.120.0040.0209.27
5.2.110.0040.0209.10
5.2.100.0050.0179.27
5.2.90.0020.0199.10
5.2.80.0040.0199.21
5.2.70.0040.0199.06
5.2.60.0040.0219.16
5.2.50.0030.0219.21
5.2.40.0040.0159.18
5.2.30.0050.0169.12
5.2.20.0040.0178.98
5.2.10.0060.0188.90
5.2.00.0040.0168.87
5.1.60.0040.0188.21
5.1.50.0030.0208.24
5.1.40.0060.0208.25
5.1.30.0020.0238.51
5.1.20.0030.0238.46
5.1.10.0070.0208.32
5.1.00.0050.0198.20
5.0.50.0060.0147.17
5.0.40.0030.0167.10
5.0.30.0060.0217.00
5.0.20.0040.0236.99
5.0.10.0030.0176.98
5.0.00.0040.0216.97
4.4.90.0020.0146.24
4.4.80.0040.0116.23
4.4.70.0030.0126.22
4.4.60.0040.0206.23
4.4.50.0020.0156.23
4.4.40.0050.0176.20
4.4.30.0040.0126.23
4.4.20.0040.0116.27
4.4.10.0030.0106.27
4.4.00.0020.0196.23
4.3.110.0020.0146.18
4.3.100.0010.0146.18
4.3.90.0040.0096.16
4.3.80.0040.0146.14
4.3.70.0040.0096.16
4.3.60.0010.0116.16
4.3.50.0030.0106.16
4.3.40.0040.0146.12
4.3.30.0020.0115.50
4.3.20.0020.0135.49
4.3.10.0000.0125.46
4.3.00.0020.01219.65