3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function rec($dir, $depth) { $d = dir($dir); if (!$d) return; while ($entry = $d->read()) { if ($entry == '.' || $entry == '..') continue; echo $depth . $entry . "\n"; if (is_dir($dir . '/' . $entry)) { //rec($dir . '/' . $entry, $depth . " "); } } } rec('/', '');
based on BXF02

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.0130.00398.97
7.3.0rc30.0040.01416.64
7.3.0beta10.0030.00312.41
7.1.200.0030.01015.71
7.1.70.0000.01117.18
7.1.60.0070.01419.46
7.1.50.0090.01316.60
7.1.00.0070.07322.36
7.0.200.0040.00716.91
7.0.140.0100.06722.05
7.0.60.0100.07720.06
7.0.50.0100.03717.87
7.0.40.0030.05720.11
7.0.30.0200.04320.12
7.0.20.0230.04020.09
7.0.10.0170.08720.07
7.0.00.0130.07720.10
5.6.280.0100.06321.07
5.6.210.0170.07020.76
5.6.200.0030.08318.20
5.6.190.0070.04020.61
5.6.180.0300.05020.61
5.6.170.0170.07720.71
5.6.160.0100.03320.45
5.6.150.0070.08318.15
5.6.140.0030.05718.15
5.6.130.0100.03718.26
5.6.120.0100.05321.07
5.6.110.0030.09021.09
5.6.100.0100.04320.87
5.6.90.0170.05720.98
5.6.80.0130.07320.52
5.6.70.3570.04320.33
5.5.350.0130.04720.41
5.5.340.0030.04018.02
5.5.330.0100.08320.41
5.5.320.0330.06320.27
5.5.310.0470.06720.26
5.5.300.0030.04017.98
5.5.290.0030.08017.95
5.5.280.0100.06720.80
5.5.270.0070.04320.79
5.5.260.0000.04320.64
5.5.250.0100.06020.55
5.5.240.4300.03320.07
5.4.450.0230.05720.77
5.4.440.0400.05020.77
5.4.430.0630.03720.77
5.4.420.0500.04320.77
5.4.410.0600.03320.77
5.4.400.0600.03321.03
5.4.390.0330.04721.03
5.4.380.0370.03321.03
5.4.370.0730.03321.03
5.4.360.0670.02321.03
5.4.350.0530.03321.03
5.4.340.0330.03721.03
5.4.320.0570.05021.03
5.4.310.0530.03021.03
5.4.300.0600.05020.78
5.4.290.0530.04020.78
5.4.280.0400.03720.78
5.4.270.0330.05020.78
5.4.260.0270.03720.78
5.4.250.0300.03720.78
5.4.240.0430.05020.78
5.4.230.0400.03320.78
5.4.220.0100.05020.78
5.4.210.0700.04020.78
5.4.200.0470.04320.78
5.4.190.0530.04020.78
5.4.180.0530.04020.78
5.4.170.0370.04720.78
5.4.160.0530.03720.78
5.4.150.0600.03720.78
5.4.140.0930.03720.78
5.4.130.0500.03320.78
5.4.120.0400.04020.78
5.4.110.0400.03320.78
5.4.100.0930.03020.78
5.4.90.0700.04320.78
5.4.80.0700.03720.78
5.4.70.0500.04320.78
5.4.60.0300.04020.78
5.4.50.0630.04320.78
5.4.40.0370.05020.78
5.4.30.0470.03720.78
5.4.20.0800.05020.78
5.4.10.0500.06020.78
5.4.00.0570.04720.78
5.3.290.0530.04721.03
5.3.280.0400.03320.78
5.3.270.0730.03320.78
5.3.260.0630.04320.78
5.3.250.0570.03720.78
5.3.240.0530.03320.78
5.3.230.0730.04020.78
5.3.220.0600.04320.78
5.3.210.0230.04320.78
5.3.200.0170.04020.78
5.3.190.0270.04720.78
5.3.180.0630.03720.78
5.3.170.0500.04320.78
5.3.160.0530.04320.78
5.3.150.0530.03320.78
5.3.140.0400.04320.78
5.3.130.0570.05020.78
5.3.120.0430.04320.78
5.3.110.0730.04320.78
5.3.100.0730.04320.78
5.3.90.0330.04020.78
5.3.80.0570.04720.78
5.3.70.0430.04320.78
5.3.60.0300.05320.78
5.3.50.0270.03720.78
5.3.40.0170.05720.78
5.3.30.0070.04320.78
5.3.20.0170.04720.78
5.3.10.0170.04720.78
5.3.00.0200.04320.78
5.2.170.0570.02320.78
5.2.160.0100.02720.78
5.2.150.0100.02020.78
5.2.140.0100.04020.78
5.2.130.0100.03720.78
5.2.120.0070.03020.78
5.2.110.0130.03020.78
5.2.100.0100.04320.78
5.2.90.0070.03320.78
5.2.80.0030.03720.78
5.2.70.0200.04320.78
5.2.60.0130.04020.78
5.2.50.0670.03020.67
5.2.40.0200.03320.67
5.2.30.0370.03320.67
5.2.20.0230.03020.67
5.2.10.0570.03320.67
5.2.00.0370.03020.67
5.1.60.0370.02320.67
5.1.50.0230.02320.67
5.1.40.0300.02720.67
5.1.30.0500.02020.67
5.1.20.0370.04020.67
5.1.10.0300.03020.67
5.1.00.0270.02720.67
5.0.50.0030.02320.67
5.0.40.0070.01720.67
5.0.30.0070.03320.67
5.0.20.0000.04320.67
5.0.10.0000.03020.67
5.0.00.0000.04320.67
4.4.90.0230.01020.78
4.4.80.0230.01020.67
4.4.70.0030.01720.67
4.4.60.0230.01020.67
4.4.50.0130.01720.67
4.4.40.0230.02720.67
4.4.30.0170.01320.67
4.4.20.0170.01720.67
4.4.10.0170.02020.67
4.4.00.0070.02020.67
4.3.110.0030.02320.67
4.3.100.0030.01320.67
4.3.90.0000.02020.67
4.3.80.0130.02720.67
4.3.70.0130.01320.67
4.3.60.0100.02020.67
4.3.50.0230.02020.67
4.3.40.0070.03020.67
4.3.30.0030.01720.67
4.3.20.0000.02020.67
4.3.10.0030.02320.67
4.3.00.0030.02320.67