3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace foo { class foofoo { } } namespace bar { use foo\foofoo as foobar; use foobar as foobarbaz; new foobarbaz(); }

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.0000.01716.69
7.2.00.0060.00619.21
7.1.200.0070.00315.66
7.1.100.0310.00017.57
7.1.70.0050.00217.05
7.1.60.0120.01219.82
7.1.50.0000.02016.50
7.1.00.0070.07322.27
7.0.200.0030.00616.72
7.0.140.0100.06321.95
7.0.60.0070.06019.94
7.0.50.0000.07317.86
7.0.40.0030.08320.14
7.0.30.0670.06020.12
7.0.20.0300.05720.34
7.0.10.0200.06020.21
7.0.00.0100.08020.24
5.6.280.0070.07020.91
5.6.210.0000.08320.62
5.6.200.0100.08318.15
5.6.190.0030.04020.45
5.6.180.0170.04720.56
5.6.170.0300.07020.58
5.6.160.0100.04720.41
5.6.150.0000.04318.21
5.6.140.0030.04018.20
5.6.130.0130.04718.17
5.6.120.0000.04320.89
5.6.110.0000.09721.08
5.6.100.0170.06721.02
5.6.90.0130.04720.97
5.6.80.0030.08720.37
5.6.70.0230.06020.52
5.5.350.0330.07020.42
5.5.340.0170.03018.08
5.5.330.0100.05720.13
5.5.320.0000.04720.39
5.5.310.0270.07720.24
5.5.300.0030.04017.95
5.5.290.0070.04317.95
5.5.280.0030.05720.84
5.5.270.0070.08720.75
5.5.260.0030.08020.87
5.5.250.0130.07320.59
5.5.240.0100.07320.32
5.4.450.0730.06319.58
5.4.440.0930.06719.20
5.4.430.0700.06719.40
5.4.420.0970.06319.33
5.4.410.0000.06319.25
5.4.400.1000.05018.70
5.4.390.1070.04718.46
5.4.380.0130.06318.75
5.4.370.0070.05318.73
5.4.360.0070.04018.63
5.4.350.0040.03612.02
5.4.340.0120.04212.01
5.4.320.0040.04012.50
5.4.310.0070.03712.49
5.4.300.0070.03512.49
5.4.290.0070.03612.50
5.4.280.0050.03512.39
5.4.270.0100.06018.88
5.4.260.0070.06019.03
5.4.250.0170.06719.07
5.4.240.0170.08019.22
5.4.230.0130.07018.98
5.4.220.0070.06718.85
5.4.210.0130.05719.06
5.4.200.0100.05019.16
5.4.190.0170.04719.13
5.4.180.0000.06718.82
5.4.170.0070.06719.22
5.4.160.0130.06318.99
5.4.150.0100.05318.90
5.4.140.0030.05716.52
5.4.130.0130.05016.70
5.4.120.0100.05316.51
5.4.110.0100.07016.43
5.4.100.0130.04316.70
5.4.90.0030.06716.77
5.4.80.0130.04716.66
5.4.70.0130.06016.63
5.4.60.0100.05716.41
5.4.50.0100.05016.66
5.4.40.0030.05316.66
5.4.30.0170.04716.38
5.4.20.0230.07016.57
5.4.10.0030.06016.49
5.4.00.0070.05315.98
5.3.290.0070.04212.80
5.3.280.0100.05014.85
5.3.270.0130.06714.64
5.3.260.0070.07314.79
5.3.250.0130.06314.87
5.3.240.0100.06014.65
5.3.230.0000.06314.88
5.3.220.0070.06314.55
5.3.210.0100.07314.61
5.3.200.0070.05014.83
5.3.190.0100.05014.85
5.3.180.0030.07714.67
5.3.170.0170.06314.61
5.3.160.0170.05014.79
5.3.150.0070.07714.61
5.3.140.0100.07314.67
5.3.130.0030.05714.61
5.3.120.0130.07314.77
5.3.110.0100.05714.84
5.3.100.0100.05013.91
5.3.90.0200.05714.00
5.3.80.0100.05013.89
5.3.70.0070.05314.30
5.3.60.0100.04714.20
5.3.50.0070.04714.24
5.3.40.0100.04714.23
5.3.30.0230.04714.20
5.3.20.0070.05013.95
5.3.10.0070.04313.84
5.3.00.0030.07013.51
5.2.170.0030.04311.25
5.2.160.0070.04011.07
5.2.150.0070.05011.25
5.2.140.0070.04010.95
5.2.130.0000.05011.02
5.2.120.0070.04711.24
5.2.110.0100.05010.91
5.2.100.0100.04311.31
5.2.90.0100.04311.33
5.2.80.0100.05011.24
5.2.70.0170.03010.90
5.2.60.0030.04311.28
5.2.50.0070.04311.00
5.2.40.0230.02710.98
5.2.30.0030.06011.02
5.2.20.0030.05311.17
5.2.10.0070.04310.90
5.2.00.0000.04710.97
5.1.60.0100.0479.96
5.1.50.0070.0479.97
5.1.40.0070.04310.05
5.1.30.0030.04710.51
5.1.20.0100.04310.42
5.1.10.0030.04010.09
5.1.00.0070.03310.36
5.0.50.0070.0279.94
5.0.40.0000.0309.94
5.0.30.0070.0479.94
5.0.20.0130.0309.93
5.0.10.0030.0409.93
5.0.00.0070.0409.93
4.4.90.0070.0239.94
4.4.80.0130.0209.94
4.4.70.0000.0279.94
4.4.60.0070.0179.94
4.4.50.0000.0279.94
4.4.40.0000.0339.94
4.4.30.0030.0239.94
4.4.20.0000.0309.94
4.4.10.0000.0239.94
4.4.00.0000.0379.94
4.3.110.0030.0209.94
4.3.100.0070.0239.93
4.3.90.0000.0279.93
4.3.80.0030.0309.93
4.3.70.0070.0239.93
4.3.60.0030.0209.93
4.3.50.0070.0279.93
4.3.40.0100.0379.93
4.3.30.0030.0279.93
4.3.20.0070.0179.93
4.3.10.0030.0209.93
4.3.00.0000.0236.79