3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dir = "/out"; // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh); } }

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.2.60.0070.00716.75
7.2.00.0000.01418.94
7.1.200.0270.00515.27
7.1.100.0040.00718.10
7.1.70.0030.00516.94
7.1.60.0160.00619.40
7.1.50.0080.00416.59
7.1.00.0000.04722.45
7.0.200.0040.00416.85
7.0.140.0030.07322.07
7.0.60.0130.07719.97
7.0.50.0000.05317.88
7.0.40.0000.04720.21
7.0.30.0200.05020.04
7.0.20.0200.08320.33
7.0.10.0030.04320.12
7.0.00.0100.07720.17
5.6.280.0070.07021.07
5.6.210.0200.07720.52
5.6.200.0100.05718.21
5.6.190.0030.04320.64
5.6.180.2800.04320.41
5.6.170.0300.06720.42
5.6.160.0030.08320.71
5.6.150.0030.04718.12
5.6.140.0070.08718.16
5.6.130.0100.08318.20
5.6.120.0030.05021.20
5.6.110.0130.07320.97
5.6.100.0100.06721.13
5.6.90.0030.04321.07
5.6.80.0070.04720.50
5.6.70.4430.04320.36
5.5.350.0030.08720.43
5.5.340.0070.08317.91
5.5.330.0070.05320.32
5.5.320.0300.06720.29
5.5.310.0100.04320.32
5.5.300.0000.05018.02
5.5.290.0100.08318.01
5.5.280.0000.04320.61
5.5.270.0100.08020.76
5.5.260.0030.08020.86
5.5.250.0130.05020.69
5.5.240.0200.05320.26
5.4.450.0000.09019.51
5.4.440.0100.07319.50
5.4.430.0130.07019.13
5.4.420.0070.07719.11
5.4.410.0030.08719.12
5.4.400.0070.08019.18
5.4.390.0070.07318.79
5.4.380.0070.04319.18
5.4.370.0070.04318.96
5.4.360.0130.05718.79
5.4.350.0100.08019.14
5.4.340.0130.06319.00
5.4.320.0100.03719.15
5.4.310.0030.07719.12
5.4.300.0170.07318.79
5.4.290.0170.07018.92
5.4.280.0100.07719.17
5.4.270.0070.06319.15
5.4.260.0170.06719.00
5.4.250.0000.06719.19
5.4.240.0100.07319.11
5.4.230.0100.07319.17
5.4.220.0030.08319.13
5.4.210.0000.04718.78
5.4.200.0130.06718.90
5.4.190.0100.04719.07
5.4.180.0100.04719.07
5.4.170.0100.06318.99
5.4.160.0130.06018.77
5.4.150.0000.04319.15
5.4.140.0000.04016.20
5.4.130.0100.06716.24
5.4.120.0070.07716.33
5.4.110.0070.04316.43
5.4.100.0070.07016.36
5.4.90.0100.05316.39
5.4.80.0030.04716.33
5.4.70.0100.07316.41
5.4.60.0070.04716.24
5.4.50.0000.05016.12
5.4.40.0070.03716.38
5.4.30.0070.07016.38
5.4.20.0230.05016.35
5.4.10.0100.04316.33
5.4.00.0030.07315.65
5.3.290.0200.06314.48
5.3.280.0030.04314.41
5.3.270.0100.07314.55
5.3.260.0070.08014.53
5.3.250.0170.03314.58
5.3.240.0070.07714.53
5.3.230.0070.07314.55
5.3.220.0070.07014.35
5.3.210.0070.05714.35
5.3.200.0070.07714.38
5.3.190.0100.07714.35
5.3.180.0100.03714.46
5.3.170.0070.06314.49
5.3.160.0130.07014.51
5.3.150.0030.07714.38
5.3.140.0300.03314.34
5.3.130.0100.03714.48
5.3.120.0200.04714.37
5.3.110.0070.07714.36
5.3.100.0100.07013.96
5.3.90.0100.03713.94
5.3.80.0070.04014.04
5.3.70.0100.04713.96
5.3.60.0070.05013.97
5.3.50.0170.02713.91
5.3.40.0030.07313.76
5.3.30.0000.05013.75
5.3.20.0070.05313.63
5.3.10.0070.04713.58
5.3.00.0000.05313.56
5.2.170.0130.05311.13
5.2.160.0100.05711.08
5.2.150.0070.03311.07
5.2.140.0100.05711.22
5.2.130.0030.05311.09
5.2.120.0000.04011.08
5.2.110.0030.06711.04
5.2.100.0070.06011.09
5.2.90.0030.06711.11
5.2.80.0070.06011.04
5.2.70.0070.06011.03
5.2.60.0070.05710.86
5.2.50.0070.05710.96
5.2.40.0030.06311.07
5.2.30.0000.03710.79
5.2.20.0100.06010.96
5.2.10.0070.05310.86
5.2.00.0100.05710.70
5.1.60.0030.0379.95
5.1.50.0100.04710.07
5.1.40.0030.0509.98
5.1.30.0070.03710.18
5.1.20.0070.05710.50
5.1.10.0000.04310.14
5.1.00.0030.05710.14
5.0.50.0030.0378.59
5.0.40.0070.0178.39
5.0.30.0030.0708.17
5.0.20.0030.0438.21
5.0.10.0070.0378.07
5.0.00.0070.0608.06
4.4.90.0070.0237.84
4.4.80.0030.0377.84
4.4.70.0000.0307.84
4.4.60.0000.0207.84
4.4.50.0000.0377.84
4.4.40.0030.0537.84
4.4.30.0030.0377.84
4.4.20.0030.0337.84
4.4.10.0100.0177.84
4.4.00.0000.0377.84
4.3.110.0000.0337.84
4.3.100.0030.0307.84
4.3.90.0070.0337.84
4.3.80.0000.0407.84
4.3.70.0030.0337.84
4.3.60.0070.0177.84
4.3.50.0030.0237.84
4.3.40.0000.0477.84
4.3.30.0000.0307.84
4.3.20.0000.0277.84
4.3.10.0000.0377.84
4.3.00.0000.0207.84