3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var=10; $a=''; for($i=1;$i<=$var;$i++){ $a.=$i; } echo $a; ?>
based on Dh1O1

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.0140.00998.97
7.3.0rc30.0180.00316.55
7.3.0beta10.0060.00312.66
7.3.0alpha10.0300.00312.62
7.2.60.0160.00616.82
7.2.00.0090.00319.29
7.1.200.0000.01515.67
7.1.100.0040.00718.07
7.1.70.0050.00317.15
7.1.60.0070.01719.25
7.1.50.0040.01416.71
7.1.00.0000.07722.48
7.0.200.0110.00516.77
7.0.140.0070.09322.02
7.0.60.0100.07320.00
7.0.50.0100.06017.89
7.0.40.0070.04720.08
7.0.30.0300.07320.00
7.0.20.0230.05020.08
7.0.10.0100.03720.09
7.0.00.0030.08020.11
5.6.280.0000.07721.14
5.6.210.0100.07020.48
5.6.200.0070.08018.23
5.6.190.0100.06320.49
5.6.180.0300.06320.39
5.6.170.0230.03320.50
5.6.160.0170.07720.41
5.6.150.0070.04718.16
5.6.140.0030.08318.14
5.6.130.0130.04718.12
5.6.120.0130.03321.04
5.6.110.0070.08021.00
5.6.100.0100.07021.02
5.6.90.0070.08721.11
5.6.80.0100.06020.53
5.5.350.0270.06720.46
5.5.340.0100.06018.00
5.5.330.0100.04020.23
5.5.320.0330.03320.27
5.5.310.0200.05020.31
5.5.300.0030.05017.91
5.5.290.0100.07717.91
5.5.280.0100.05720.89
5.5.270.0100.08020.95
5.5.260.0070.08320.67
5.5.250.0070.08020.57
5.5.240.0070.07720.01
5.4.450.0230.04719.10
5.4.440.0700.07319.48
5.4.430.0830.05319.60
5.4.420.0870.04719.31
5.4.410.0130.05018.68
5.4.400.0470.07718.68
5.4.390.0500.04018.49
5.4.380.0200.05018.65
5.4.370.0170.04318.68
5.4.360.0000.04318.77
5.4.350.0050.04911.97
5.4.340.0050.04111.96
5.4.320.0090.03612.45
5.4.310.0060.04412.45
5.4.300.0080.04112.45
5.4.290.0090.04212.45
5.4.280.0030.03812.35
5.4.270.0080.03312.34
5.4.260.0080.03512.34
5.4.250.0070.03612.34
5.4.240.0050.04312.34
5.4.230.0060.04312.34
5.4.220.0110.04312.34
5.4.210.0030.03812.34
5.4.200.0050.03912.34
5.4.190.0050.03812.34
5.4.180.0090.03412.33
5.4.170.0060.03612.34
5.4.160.0060.04212.34
5.4.150.0070.03712.34
5.4.140.0050.03812.02
5.4.130.0050.03612.01
5.4.120.0060.03511.97
5.4.110.0030.03811.96
5.4.100.0050.03511.96
5.4.90.0090.03411.96
5.4.80.0070.03811.96
5.4.70.0090.03511.96
5.4.60.0070.04311.96
5.4.50.0060.03611.96
5.4.40.0080.03211.95
5.4.30.0070.03411.95
5.4.20.0030.03911.95
5.4.10.0030.03911.95
5.4.00.0080.03411.44
5.3.290.0050.03912.80
5.3.280.0110.03312.71
5.3.270.0040.04112.72
5.3.260.0050.03912.72
5.3.250.0080.03512.72
5.3.240.0050.03912.72
5.3.230.0090.03712.71
5.3.220.0050.04112.68
5.3.210.0070.03712.68
5.3.200.0080.03912.68
5.3.190.0090.03712.68
5.3.180.0050.03812.68
5.3.170.0120.03812.67
5.3.160.0100.03312.68
5.3.150.0060.03712.67
5.3.140.0040.03812.66
5.3.130.0060.04112.66
5.3.120.0070.03812.65
5.3.110.0070.03812.66
5.3.100.0070.03512.12
5.3.90.0070.03612.09
5.3.80.0080.03512.08
5.3.70.0050.03812.07
5.3.60.0070.03612.07
5.3.50.0070.03412.00
5.3.40.0070.03612.00
5.3.30.0090.03311.94
5.3.20.0070.03411.73
5.3.10.0080.04211.69
5.3.00.0050.04111.67
5.2.170.0030.0339.18
5.2.160.0040.0299.18
5.2.150.0060.0299.18
5.2.140.0060.0299.17
5.2.130.0060.0279.13
5.2.120.0040.0299.14
5.2.110.0030.0309.14
5.2.100.0040.0309.14
5.2.90.0060.0289.14
5.2.80.0050.0299.13
5.2.70.0010.0349.13
5.2.60.0030.0319.09
5.2.50.0020.0329.05
5.2.40.0060.0279.03
5.2.30.0090.0259.00
5.2.20.0050.0289.00
5.2.10.0070.0258.93
5.2.00.0060.0278.79
5.1.60.0010.0268.08
5.1.50.0040.0248.07
5.1.40.0030.0268.05
5.1.30.0040.0268.40
5.1.20.0020.0288.43
5.1.10.0050.0268.15
5.1.00.0050.0268.15
5.0.50.0040.0196.63
5.0.40.0040.0186.49
5.0.30.0070.0286.30
5.0.20.0040.0236.27
5.0.10.0010.0226.25
5.0.00.0050.0286.24
4.4.90.0020.0164.78
4.4.80.0020.0154.75
4.4.70.0020.0164.76
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0030.0154.75
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0010.0274.76
4.3.110.0050.0134.67
4.3.100.0050.0134.67
4.3.90.0050.0124.63
4.3.80.0040.0234.58
4.3.70.0000.0174.63
4.3.60.0010.0164.63
4.3.50.0030.0154.63
4.3.40.0010.0264.54
4.3.30.0000.0183.29
4.3.20.0020.0163.27
4.3.10.0030.0153.22
4.3.00.0000.0307.02