3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 13; $b = 12; $c = $a << $b; var_dump($c);

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.00.0110.00319.39
7.1.100.0060.00618.00
7.1.70.0000.00717.31
7.1.60.0060.01019.46
7.1.50.0080.00316.79
7.1.00.0030.07722.45
7.0.200.0040.00416.70
7.0.140.0030.07022.18
7.0.60.0070.08319.94
7.0.50.0070.04017.79
7.0.40.0070.04319.96
7.0.30.0270.08020.02
7.0.20.0300.07720.18
7.0.10.0030.06320.09
7.0.00.0170.07720.00
5.6.280.0030.07321.07
5.6.210.0100.08320.76
5.6.200.0000.04318.24
5.6.190.0130.07320.35
5.6.180.0230.04320.48
5.6.170.0330.05720.50
5.6.160.0030.06720.46
5.6.150.0030.04018.11
5.6.140.0030.06718.15
5.6.130.0030.04718.09
5.6.120.0200.07021.14
5.6.110.0170.08021.11
5.6.100.0000.09321.12
5.6.90.0100.05721.12
5.6.80.0170.07020.27
5.5.350.0330.07020.32
5.5.340.0030.03717.92
5.5.330.0030.04320.37
5.5.320.0170.08020.24
5.5.310.0230.08020.26
5.5.300.0130.07717.91
5.5.290.0100.07717.88
5.5.280.0070.08320.95
5.5.270.0030.08720.85
5.5.260.0130.08320.73
5.5.250.0100.04720.65
5.5.240.0030.07720.11
5.4.450.0570.06019.59
5.4.440.0200.07319.60
5.4.430.0200.07319.45
5.4.420.0070.06019.46
5.4.410.0200.04319.35
5.4.400.0070.06019.05
5.4.390.0130.04719.26
5.4.380.0230.05318.78
5.4.370.0170.05718.45
5.4.360.0030.04718.53
5.4.350.0060.03811.97
5.4.340.0140.05411.96
5.4.320.0080.05012.45
5.4.310.0080.05212.45
5.4.300.0100.06012.45
5.4.290.0150.09412.45
5.4.280.0100.05212.34
5.4.270.0090.05112.34
5.4.260.0120.05812.35
5.4.250.0130.05412.34
5.4.240.0150.05312.34
5.4.230.0110.05112.34
5.4.220.0100.03412.34
5.4.210.0110.06612.34
5.4.200.0200.06012.34
5.4.190.0080.05212.34
5.4.180.0060.05112.34
5.4.170.0170.09012.35
5.4.160.0130.07312.34
5.4.150.0110.04712.34
5.4.140.0090.05512.02
5.4.130.0080.06512.00
5.4.120.0110.05711.97
5.4.110.0050.05711.96
5.4.100.0090.05411.97
5.4.90.0160.06211.96
5.4.80.0140.07411.96
5.4.70.0100.06911.96
5.4.60.0080.06211.96
5.4.50.0060.05711.96
5.4.40.0170.04911.95
5.4.30.0060.06011.95
5.4.20.0120.05811.95
5.4.10.0150.05011.95
5.4.00.0130.05411.43
5.3.290.0060.04012.80
5.3.280.0080.05412.71
5.3.270.0100.05612.73
5.3.260.0100.05512.72
5.3.250.0100.05112.72
5.3.240.0090.05112.72
5.3.230.0140.04612.71
5.3.220.0090.05112.68
5.3.210.0120.06312.68
5.3.200.0120.06312.68
5.3.190.0350.08412.68
5.3.180.0080.05012.67
5.3.170.0060.04912.67
5.3.160.0090.04912.67
5.3.150.0170.08712.68
5.3.140.0110.06112.66
5.3.130.0120.06512.65
5.3.120.0110.07712.66
5.3.110.0140.04712.66
5.3.100.0150.06412.12
5.3.90.0070.05212.08
5.3.80.0250.09212.07
5.3.70.0090.05312.07
5.3.60.0150.07312.07
5.3.50.0090.04712.00
5.3.40.0230.07012.00
5.3.30.0160.08011.94
5.3.20.0150.08911.71
5.3.10.0090.04611.69
5.3.00.0080.05211.68
5.2.170.0110.0399.18
5.2.160.0070.0439.18
5.2.150.0120.0649.18
5.2.140.0080.0599.18
5.2.130.0140.0469.14
5.2.120.0160.0599.14
5.2.110.0130.0629.14
5.2.100.0120.0549.13
5.2.90.0120.0459.13
5.2.80.0110.0439.13
5.2.70.0130.0439.13
5.2.60.0100.0629.09
5.2.50.0110.0599.05
5.2.40.0070.0579.03
5.2.30.0090.0559.00
5.2.20.0150.0538.99
5.2.10.0210.0558.92
5.2.00.0120.0698.77
5.1.60.0040.0438.06
5.1.50.0130.0448.06
5.1.40.0100.0668.04
5.1.30.0100.0378.39
5.1.20.0050.0388.41
5.1.10.0070.0448.13
5.1.00.0070.0478.13
5.0.50.0150.0456.61
5.0.40.0120.0426.47
5.0.30.0120.0706.29
5.0.20.0070.0246.25
5.0.10.0100.0466.23
5.0.00.0090.0586.22
4.4.90.0070.0414.78
4.4.80.0080.0424.76
4.4.70.0080.0294.75
4.4.60.0020.0314.75
4.4.50.0130.0304.77
4.4.40.0030.0384.71
4.4.30.0050.0304.76
4.4.20.0040.0214.85
4.4.10.0080.0334.85
4.4.00.0060.0264.76
4.3.110.0050.0244.67
4.3.100.0050.0214.66
4.3.90.0040.0224.63
4.3.80.0060.0304.58
4.3.70.0050.0204.63
4.3.60.0030.0224.63
4.3.50.0020.0214.63
4.3.40.0120.0444.54
4.3.30.0040.0413.28
4.3.20.0050.0203.25
4.3.10.0020.0443.21
4.3.00.0000.0238.05