3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $dir = '\\'; $d = array(); $arr = opendir($dir); while($v = readdir($arr)) { if($v == '.' or $v == '..') continue; if(!is_dir($dir.DIRECTORY_SEPARATOR.$v)) $d[] = $v; if(is_dir($dir.DIRECTORY_SEPARATOR.$v)) $d[$v] = scan($dir.DIRECTORY_SEPARATOR.$v); } return $d;

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.0rc40.0200.01098.97
7.3.0rc30.0140.01116.41
7.3.0beta10.0070.00312.57
7.3.0alpha10.0000.00712.40
7.2.110.0100.01016.36
7.2.60.0030.01316.80
7.2.00.0030.00519.41
7.1.200.0030.01215.56
7.1.100.0090.00317.84
7.1.70.0030.00517.19
7.1.60.0070.00317.21
7.1.50.0030.01616.57
7.1.00.0000.05722.44
7.0.200.0000.00716.34
7.0.140.0070.07022.21
7.0.60.0130.08319.86
7.0.50.0070.03717.82
7.0.40.0100.06020.03
7.0.30.0200.03720.17
7.0.20.0300.08020.18
7.0.10.0230.06320.17
7.0.00.0170.06320.00
5.6.280.0000.07721.00
5.6.210.0170.06320.71
5.6.200.0070.08718.08
5.6.190.0130.08020.48
5.6.180.0130.04320.43
5.6.170.0170.04720.51
5.6.160.0030.05320.41
5.6.150.0070.07318.18
5.6.140.0170.07018.07
5.6.130.0070.06718.21
5.6.120.0170.07320.89
5.6.110.0070.07321.08
5.6.100.0100.08020.98
5.6.90.0130.05721.00
5.6.80.0030.04320.50
5.6.70.0270.04320.36
5.5.350.0100.06720.39
5.5.340.0030.08717.89
5.5.330.0100.08320.19
5.5.320.0330.07020.13
5.5.310.0300.07020.32
5.5.300.0130.07318.00
5.5.290.0070.08317.92
5.5.280.0000.04320.93
5.5.270.0170.04720.86
5.5.260.0070.08720.87
5.5.250.0070.08020.46
5.5.240.0170.07020.10
5.4.450.0900.05719.47
5.4.440.0900.06019.64
5.4.430.0830.06319.24
5.4.420.0800.05719.40
5.4.410.0930.05719.11
5.4.400.0930.05718.79
5.4.390.1330.06018.56
5.4.380.0370.05318.56
5.4.370.0230.04718.73
5.4.360.0230.04318.71
5.4.350.0110.04311.98
5.4.340.0080.03611.98
5.4.320.0080.03912.45
5.4.310.0050.04812.45
5.4.300.0060.04312.45
5.4.290.0030.04112.45
5.4.280.0060.03612.34
5.4.270.0080.03712.35
5.4.260.0090.03712.35
5.4.250.0070.04612.34
5.4.240.0070.05318.75
5.4.230.0030.06318.88
5.4.220.0070.07018.97
5.4.210.0130.07718.67
5.4.200.0100.05018.88
5.4.190.0030.05318.85
5.4.180.0100.04718.82
5.4.170.0100.05318.62
5.4.160.0000.05718.76
5.4.150.0130.07018.89
5.4.140.0070.05016.18
5.4.130.0100.05716.20
5.4.120.0000.07016.33
5.4.110.0070.07016.14
5.4.100.0030.05016.48
5.4.90.0000.05316.27
5.4.80.0100.06316.42
5.4.70.0100.04716.18
5.4.60.0030.05016.31
5.4.50.0130.05716.12
5.4.40.0030.05016.28
5.4.30.0130.05316.26
5.4.20.0030.04716.37
5.4.10.0070.05016.40
5.4.00.0030.06015.82
5.3.290.0050.04012.80
5.3.280.0130.06314.61
5.3.270.0100.05714.62
5.3.260.0170.06014.53
5.3.250.0030.05314.44
5.3.240.0070.04714.61
5.3.230.0030.05714.46
5.3.220.0100.05314.61
5.3.210.0130.05714.55
5.3.200.0170.04714.65
5.3.190.0130.04714.55
5.3.180.0000.06014.71
5.3.170.0000.05014.71
5.3.160.0100.07314.57
5.3.150.0100.05014.56
5.3.140.0130.06314.39
5.3.130.0030.06014.43
5.3.120.0000.08014.41
5.3.110.0070.05014.55
5.3.100.0100.04314.04
5.3.90.0070.05713.78
5.3.80.0100.04013.80
5.3.70.0000.05014.11
5.3.60.0030.05013.70
5.3.50.0030.07013.71
5.3.40.0130.04713.96
5.3.30.0170.05014.05
5.3.20.0100.04013.70
5.3.10.0070.05713.73
5.3.00.0030.06313.65
5.2.170.0030.05011.25
5.2.160.0070.05711.14
5.2.150.0070.04311.14
5.2.140.0030.04711.28
5.2.130.0100.03311.19
5.2.120.0030.06011.09
5.2.110.0030.04711.12
5.2.100.0200.04311.11
5.2.90.0070.04311.09
5.2.80.0130.04010.92
5.2.70.0170.05011.10
5.2.60.0070.03711.04
5.2.50.0000.05311.02
5.2.40.0100.07010.89
5.2.30.0100.04010.90
5.2.20.0100.03710.93
5.2.10.0070.05310.77
5.2.00.0070.03710.69
5.1.60.0070.03310.19
5.1.50.0100.0379.92
5.1.40.0130.03710.03
5.1.30.0130.04310.38
5.1.20.0070.04710.11
5.1.10.0030.0509.91
5.1.00.0030.0379.82
5.0.50.0000.0308.63
5.0.40.0000.0338.31
5.0.30.0070.0538.30
5.0.20.0070.0308.22
5.0.10.0000.0278.22
5.0.00.0000.0438.38
4.4.90.0070.0236.51
4.4.80.0000.0236.51
4.4.70.0000.0306.51
4.4.60.0000.0236.51
4.4.50.0000.0306.51
4.4.40.0000.0336.51
4.4.30.0070.0206.51
4.4.20.0030.0236.51
4.4.10.0030.0276.51
4.4.00.0000.0336.51
4.3.110.0000.0336.51
4.3.100.0000.0236.51
4.3.90.0030.0206.51
4.3.80.0030.0406.51
4.3.70.0030.0236.51
4.3.60.0030.0176.51
4.3.50.0000.0236.51
4.3.40.0000.0336.51
4.3.30.0000.0276.51
4.3.20.0000.0276.51
4.3.10.0000.0236.51
4.3.00.0130.0237.09