3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $f = new SplFileInfo("/dev/null"); $h = $f->openFile(); while($h->valid()){ $h->current(); // comment out this line to get an endless loop $h->next(); } die("done");

Here you find the average performance (time & memory) of each version. A greyed 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.00.0060.00718.74
7.1.120.0070.00617.97
7.1.110.0060.00517.55
7.1.100.0040.00817.55
7.1.90.0060.00518.06
7.1.80.0070.00617.44
7.1.70.0020.00817.04
7.1.60.0130.01134.84
7.1.50.0140.01034.07
7.1.40.0350.00732.97
7.1.30.0160.00934.26
7.1.20.0200.00934.57
7.1.10.0060.00616.38
7.1.00.0050.00716.55
7.0.260.0030.00817.70
7.0.250.0050.00617.14
7.0.240.0050.00617.14
7.0.230.0140.00417.01
7.0.220.0060.00417.71
7.0.210.0040.00616.60
7.0.200.0060.00616.14
7.0.190.0010.00916.60
7.0.180.0050.00715.67
7.0.170.0070.00715.55
7.0.160.0090.00715.13
7.0.150.0070.00516.25
7.0.140.0080.00216.35
7.0.130.0050.00516.60
7.0.120.0020.00816.47
7.0.110.0020.00916.19
7.0.100.0090.00315.72
7.0.90.0020.00816.35
7.0.80.0100.00215.88
7.0.70.0060.00416.30
7.0.60.0080.00415.50
7.0.50.0050.00715.54
7.0.40.0040.00815.73
7.0.30.0070.00415.78
7.0.20.0090.00415.78
7.0.10.0060.00515.60
7.0.00.0040.00815.66
hhvm-3.22.00.0510.12092.68
hhvm-3.21.30.0560.12891.67
hhvm-3.21.00.0630.12492.65
hhvm-3.20.20.0400.12792.38
hhvm-3.19.20.0470.12592.50
hhvm-3.18.50.0390.12489.30
hhvm-3.18.40.0240.13791.30
hhvm-3.17.30.0530.11089.43
hhvm-3.15.40.0340.12087.59
hhvm-3.13.20.0540.10498.39
hhvm-3.12.140.0540.10697.48
hhvm-3.11.10.0400.12290.74
hhvm-3.10.10.0390.11487.04
5.6.300.0090.04820.74
5.6.290.0060.05220.65
5.6.280.0070.05320.81
5.6.270.0100.04820.89
5.6.260.0080.04920.85
5.6.250.0090.04820.95
5.6.240.0100.04820.80
5.6.230.0100.04820.88
5.6.220.0080.04920.84
5.6.210.0080.04820.80
5.6.200.0070.05020.82
5.6.190.0090.04920.92
5.6.180.0130.04320.83
5.6.170.0150.04220.88
5.6.160.0140.04520.87
5.6.150.0050.05420.91
5.6.140.0130.04620.89
5.6.130.0060.05220.85
5.6.120.0150.04320.90
5.6.110.0090.04820.86
5.6.100.0020.05820.83
5.6.90.0070.05020.90
5.6.80.0100.04320.18
5.6.70.0060.04920.27
5.6.60.0090.04620.25
5.6.50.0040.05020.24
5.6.40.0100.04520.25
5.6.30.0100.04420.22
5.6.20.0110.04320.18
5.6.10.0120.04220.21
5.6.00.0080.04720.14
5.5.380.0130.04017.39
5.5.370.0070.05317.39
5.5.360.0070.04817.39
5.5.350.0070.04617.43
5.5.340.0060.04817.97
5.5.330.0030.05317.89
5.5.320.0060.06817.97
5.5.310.0100.04418.07
5.5.300.0000.05417.98
5.5.290.0110.04617.91
5.5.280.0040.05317.96
5.5.270.0130.04317.69
5.5.260.0130.04317.77
5.5.250.0030.05017.77
5.5.240.0070.04517.44
5.5.230.0030.05017.33
5.5.220.0130.05417.37
5.5.210.0130.04417.34
5.5.200.0030.04917.10
5.5.190.0000.05317.09
5.5.180.0100.04417.25
5.5.160.0030.05117.30
5.5.150.0170.03517.34
5.5.140.0130.04017.27
5.5.130.0060.04817.11
5.5.120.0100.04217.14
5.5.110.0190.03717.39
5.5.100.0070.04717.21
5.5.90.0100.04317.15
5.5.80.0210.03017.15
5.5.70.0130.04117.20
5.5.60.0060.04617.14
5.5.50.0030.04817.29
5.5.40.0120.04017.29
5.5.30.0100.04316.94
5.5.20.0070.04517.29
5.5.10.0040.04916.98
5.5.00.0070.04717.19
5.4.450.0130.04419.52
5.4.440.0070.04819.27
5.4.430.0100.04319.08
5.4.420.0130.04019.09
5.4.410.0080.04519.18
5.4.400.0130.03919.01
5.4.390.0160.03618.98
5.4.380.0000.05218.79
5.4.370.0100.04019.01
5.4.360.0130.03919.04
5.4.350.0100.04219.04
5.4.340.0070.04618.99
5.4.320.0030.04919.00
5.4.310.0130.03918.95
5.4.300.0100.04218.91
5.4.290.0070.04718.99
5.4.280.0060.04818.95
5.4.270.0060.04818.85
5.4.260.0100.04718.98
5.4.250.0070.04618.78
5.4.240.0060.04519.16
5.4.230.0100.04618.97
5.4.220.0120.04218.95
5.4.210.0070.04618.97
5.4.200.0130.04118.93
5.4.190.0210.03119.07
5.4.180.0070.04518.97
5.4.170.0130.03918.87
5.4.160.0190.03418.98
5.4.150.0170.03518.75
5.4.140.0030.04816.27
5.4.130.0030.04516.46
5.4.120.0100.04016.54
5.4.110.0090.04116.61
5.4.100.0090.04616.35
5.4.90.0090.04716.36
5.4.80.0150.03616.42
5.4.70.0060.05916.50
5.4.60.0030.05716.50
5.4.50.0030.04516.48
5.4.40.0100.04316.63
5.4.30.0000.04916.31
5.4.20.0060.04516.54
5.4.10.0130.03716.32
5.4.00.0100.04216.02
5.3.290.0070.04514.81
5.3.280.0100.04214.66
5.3.270.0030.04814.75
5.3.260.0000.05114.75
5.3.250.0030.04714.75
5.3.240.0130.03714.56
5.3.230.0030.04814.72
5.3.220.0130.04014.79
5.3.210.0110.05714.50
5.3.200.0100.04214.69
5.3.190.0070.04914.77
5.3.180.0030.05414.50
5.3.170.0030.05414.74
5.3.160.0030.04814.50
5.3.150.0060.04414.68
5.3.140.0100.04214.51
5.3.130.0070.04614.60
5.3.120.0070.04614.54
5.3.110.0060.04914.75
5.3.100.0110.03914.18
5.3.90.0070.04314.20
5.3.80.0090.04213.95
5.3.70.0130.05313.84
5.3.60.0040.04614.07
5.3.50.0070.04114.04
5.3.40.0030.04513.77
5.3.30.0030.04414.00
5.3.20.0000.04913.74
5.3.10.0070.05713.74
5.3.00.0030.04413.73
5.2.170.0090.03111.27
5.2.160.0030.03611.35
5.2.150.0090.03111.29
5.2.140.0040.03611.29
5.2.130.0070.03311.25
5.2.120.0110.02811.04
5.2.110.0040.03611.21
5.2.100.0040.03711.30
5.2.90.0040.03511.04
5.2.80.0070.03311.21
5.2.70.0070.03411.31
5.2.60.0000.03911.04
5.2.50.0100.03011.16
5.2.40.0030.03510.96
5.2.30.0070.03111.12
5.2.20.0100.02910.89
5.2.10.0030.03410.92
5.2.00.0060.03211.03
5.1.60.0000.0349.98
5.1.50.0120.03010.03
5.1.40.0030.0309.97
5.1.30.0040.03210.62
5.1.20.0030.03310.63
5.1.10.0030.03110.14
5.1.00.0030.04110.09
5.0.50.0040.0258.62
5.0.40.0000.0268.70
5.0.30.0070.0318.51
5.0.20.0030.0238.41
5.0.10.0070.0208.36
5.0.00.0000.0408.36
4.4.90.0030.0178.36
4.4.80.0000.0208.36
4.4.70.0040.0168.36
4.4.60.0030.0178.36
4.4.50.0060.0148.36
4.4.40.0000.0328.36
4.4.30.0070.0148.36
4.4.20.0070.0148.36
4.4.10.0030.0248.36
4.4.00.0060.0268.36
4.3.110.0030.0178.36
4.3.100.0060.0138.36
4.3.90.0030.0178.36
4.3.80.0000.0318.36
4.3.70.0070.0138.36
4.3.60.0070.0138.36
4.3.50.0000.0208.36
4.3.40.0000.0338.36
4.3.30.0000.0218.36
4.3.20.0030.0178.36
4.3.10.0000.0248.36
4.3.00.0030.0208.36