3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function __autoload($n) { echo $n; exit; } $smarty = new Smarty\Smarty();

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.0080.00816.93
7.2.00.0030.01019.17
7.1.200.0060.00615.45
7.1.100.0100.00017.83
7.1.70.0090.00317.04
7.1.60.0070.01719.82
7.1.50.0070.01816.87
7.1.00.0000.03722.28
7.0.200.0030.00616.55
7.0.140.0000.07722.09
7.0.60.0130.04319.91
7.0.50.0000.05317.91
7.0.40.0070.05020.23
7.0.30.0030.05320.23
7.0.20.0130.07020.23
7.0.10.0070.04020.21
7.0.00.0030.05320.16
5.6.280.0070.07021.14
5.6.210.0070.06320.53
5.6.200.0100.07318.15
5.6.190.0100.08020.63
5.6.180.0300.07720.57
5.6.170.0330.04720.56
5.6.160.0200.07020.56
5.6.150.0130.07018.21
5.6.140.0100.05018.21
5.6.130.0070.06318.27
5.6.120.0130.08320.94
5.6.110.0100.08020.91
5.6.100.0130.08020.98
5.6.90.0100.06721.13
5.6.80.0100.07320.38
5.5.350.0230.08020.46
5.5.340.0100.04318.05
5.5.330.0100.08720.29
5.5.320.0370.06320.36
5.5.310.0230.05020.46
5.5.300.0100.07718.02
5.5.290.0100.08018.00
5.5.280.0070.07020.90
5.5.270.0130.08020.94
5.5.260.0070.04720.77
5.5.250.0000.06020.49
5.5.240.0170.04320.16
5.4.450.0330.04719.16
5.4.440.0670.04019.52
5.4.430.0530.04719.57
5.4.420.0330.03319.32
5.4.410.0270.04319.05
5.4.400.1000.04019.23
5.4.390.1170.03019.24
5.4.380.0170.05718.63
5.4.370.0230.05318.61
5.4.360.0270.04718.64
5.4.350.0200.06318.53
5.4.340.0200.05318.73
5.4.320.0040.04312.50
5.4.310.0070.04212.50
5.4.300.0030.03812.51
5.4.290.0100.03612.50
5.4.280.0040.03612.40
5.4.270.0050.03912.40
5.4.260.0100.07718.93
5.4.250.0130.07318.91
5.4.240.0170.04718.60
5.4.230.0100.05018.78
5.4.220.0100.06018.90
5.4.210.0000.06718.73
5.4.200.0230.03718.95
5.4.190.0170.08019.04
5.4.180.0130.05018.97
5.4.170.0130.05718.73
5.4.160.0030.06718.95
5.4.150.0300.04018.85
5.4.140.0130.04716.54
5.4.130.0170.06016.32
5.4.120.0130.04716.33
5.4.110.0130.06716.46
5.4.100.0100.05716.46
5.4.90.0130.05016.41
5.4.80.0030.07016.29
5.4.70.0100.06716.33
5.4.60.0100.06016.49
5.4.50.0130.05316.34
5.4.40.0100.06016.41
5.4.30.0100.05716.39
5.4.20.0200.04716.48
5.4.10.0070.05316.44
5.4.00.0100.07315.76
5.3.290.0100.03612.80
5.3.280.0170.04314.66
5.3.270.0230.04714.78
5.3.260.0200.05014.43
5.3.250.0070.08014.59
5.3.240.0230.04714.82
5.3.230.0070.06714.68
5.3.220.0100.06714.72
5.3.210.0030.06014.64
5.3.200.0030.08014.55
5.3.190.0070.05014.58
5.3.180.0030.05714.54
5.3.170.0200.05314.64
5.3.160.0170.06014.64
5.3.150.0130.04714.56
5.3.140.0100.05014.54
5.3.130.0100.07714.76
5.3.120.0070.05314.44
5.3.110.0100.05014.61
5.3.100.0070.05014.21
5.3.90.0070.06014.10
5.3.80.0100.05014.00
5.3.70.0030.05313.92
5.3.60.0130.06014.16
5.3.50.0170.05014.16
5.3.40.0130.06314.10
5.3.30.0130.04713.73
5.3.20.0070.07313.59
5.3.10.0000.05713.71
5.3.00.0070.07313.77
5.2.170.0030.04311.22
5.2.160.0200.04711.13
5.2.150.0100.04311.35
5.2.140.0170.06311.21
5.2.130.0070.04010.93
5.2.120.0070.04011.26
5.2.110.0100.03711.18
5.2.100.0030.04311.27
5.2.90.0100.05011.06
5.2.80.0100.04310.91
5.2.70.0130.04311.07
5.2.60.0070.05711.21
5.2.50.0030.04311.11
5.2.40.0070.03710.98
5.2.30.0030.04311.04
5.2.20.0100.03711.02
5.2.10.0000.04310.94
5.2.00.0100.03710.80
5.1.60.0030.03710.14
5.1.50.0070.0309.97
5.1.40.0030.05310.04
5.1.30.0000.04010.23
5.1.20.0100.03310.52
5.1.10.0100.03010.03
5.1.00.0000.05010.04
5.0.50.0030.0308.63
5.0.40.0070.0278.64
5.0.30.0070.0438.22
5.0.20.0030.0308.28
5.0.10.0100.0378.16
5.0.00.0000.0478.04
4.4.90.0030.0208.04
4.4.80.0000.0338.04
4.4.70.0070.0278.04
4.4.60.0000.0238.04
4.4.50.0070.0178.04
4.4.40.0030.0338.04
4.4.30.0000.0238.04
4.4.20.0030.0238.04
4.4.10.0030.0208.04
4.4.00.0070.0278.04
4.3.110.0000.0238.04
4.3.100.0070.0208.04
4.3.90.0070.0208.04
4.3.80.0070.0338.04
4.3.70.0000.0338.04
4.3.60.0170.0208.04
4.3.50.0070.0238.04
4.3.40.0030.0478.04
4.3.30.0030.0238.04
4.3.20.0070.0278.04
4.3.10.0030.0238.04
4.3.00.0270.01312.80