3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test{ private $a = 3; public function out(){ echo $this->a; } } $b = new Test(); $b->out();

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.0110.00416.74
7.2.00.0090.00619.53
7.1.200.0030.00715.69
7.1.100.0000.01217.86
7.1.70.0000.01216.69
7.1.60.0130.01319.70
7.1.50.0170.00716.80
7.1.00.0030.07322.45
7.0.200.0070.00016.39
7.0.140.0030.07322.15
7.0.60.0030.08319.85
7.0.50.0100.07717.95
7.0.40.0100.08320.23
7.0.30.0270.08020.12
7.0.20.0170.05320.10
7.0.10.0100.04720.09
7.0.00.0000.07720.23
5.6.280.0100.06720.89
5.6.210.0130.07320.75
5.6.200.0070.08718.22
5.6.190.0030.06020.65
5.6.180.0070.08320.45
5.6.170.0130.04720.57
5.6.160.0070.06720.55
5.6.150.0030.05318.14
5.6.140.0100.05018.25
5.6.130.0130.07318.19
5.6.120.0030.05720.90
5.6.110.0230.06721.02
5.6.100.0130.07721.09
5.6.90.0100.06720.98
5.6.80.0070.05320.35
5.6.70.0270.04320.49
5.5.350.0030.07720.38
5.5.340.0030.04717.96
5.5.330.0030.05720.27
5.5.320.0130.05720.34
5.5.310.0230.08320.26
5.5.300.0030.06318.07
5.5.290.0030.09017.95
5.5.280.0070.05320.80
5.5.270.0030.05020.89
5.5.260.0070.04320.76
5.5.250.0070.07320.80
5.5.240.0070.07720.26
5.4.450.0300.04029.27
5.4.440.0270.04726.63
5.4.430.0230.03722.76
5.4.420.0270.04021.68
5.4.410.0170.04021.57
5.4.400.0400.04021.36
5.4.390.0230.04719.16
5.4.380.0200.05718.67
5.4.370.0170.05318.47
5.4.360.0170.05018.79
5.4.350.0370.06718.55
5.4.340.0400.05718.54
5.4.320.0050.03812.50
5.4.310.0050.03812.50
5.4.300.0100.04812.50
5.4.290.0130.05612.50
5.4.280.0070.05712.39
5.4.270.0080.05112.39
5.4.260.0090.05012.39
5.4.250.0090.05312.39
5.4.240.0090.05912.39
5.4.230.0090.05012.39
5.4.220.0050.05412.39
5.4.210.0120.04912.39
5.4.200.0120.05212.39
5.4.190.0050.05612.38
5.4.180.0070.05812.38
5.4.170.0070.05812.39
5.4.160.0080.06012.39
5.4.150.0090.05312.38
5.4.140.0110.06812.07
5.4.130.0080.05212.05
5.4.120.0120.05012.02
5.4.110.0090.06512.02
5.4.100.0110.04912.01
5.4.90.0120.05512.01
5.4.80.0160.04512.02
5.4.70.0080.05212.01
5.4.60.0070.05112.01
5.4.50.0120.06212.01
5.4.40.0140.05912.00
5.4.30.0080.05311.99
5.4.20.0070.05512.00
5.4.10.0080.05112.00
5.4.00.0060.05411.48
5.3.290.0070.04012.80
5.3.280.0100.05412.71
5.3.270.0070.05412.72
5.3.260.0070.05512.72
5.3.250.0110.05912.72
5.3.240.0120.05112.72
5.3.230.0110.04812.71
5.3.220.0050.03812.68
5.3.210.0060.05512.68
5.3.200.0110.04812.68
5.3.190.0060.05412.67
5.3.180.0090.05112.68
5.3.170.0110.05212.66
5.3.160.0090.06112.67
5.3.150.0070.05912.67
5.3.140.0070.06212.66
5.3.130.0120.05012.66
5.3.120.0070.04012.66
5.3.110.0080.03912.66
5.3.100.0070.03712.12
5.3.90.0030.04012.09
5.3.80.0080.03612.09
5.3.70.0060.03912.09
5.3.60.0050.03912.07
5.3.50.0070.03912.03
5.3.40.0040.04212.02
5.3.30.0090.04111.97
5.3.20.0090.03511.75
5.3.10.0070.04311.72
5.3.00.0080.04911.73
5.2.170.0070.0299.22
5.2.160.0040.0319.22
5.2.150.0040.0329.22
5.2.140.0040.0329.21
5.2.130.0040.0329.18
5.2.120.0060.0299.18
5.2.110.0060.0309.17
5.2.100.0080.0429.17
5.2.90.0100.0409.17
5.2.80.0130.0569.16
5.2.70.0090.0439.16
5.2.60.0070.0419.13
5.2.50.0110.0389.09
5.2.40.0040.0369.07
5.2.30.0100.0269.04
5.2.20.0060.0399.03
5.2.10.0070.0368.93
5.2.00.0080.0388.79
5.1.60.0030.0288.08
5.1.50.0040.0258.08
5.1.40.0070.0268.06
5.1.30.0070.0278.41
5.1.20.0050.0258.43
5.1.10.0050.0258.16
5.1.00.0030.0278.16
5.0.50.0060.0186.63
5.0.40.0030.0206.50
5.0.30.0030.0326.31
5.0.20.0050.0186.27
5.0.10.0030.0236.25
5.0.00.0020.0326.25
4.4.90.0040.0144.78
4.4.80.0020.0164.76
4.4.70.0030.0154.76
4.4.60.0020.0164.76
4.4.50.0010.0174.77
4.4.40.0040.0234.71
4.4.30.0040.0144.76
4.4.20.0020.0164.85
4.4.10.0050.0144.85
4.4.00.0010.0274.76
4.3.110.0030.0174.67
4.3.100.0050.0154.67
4.3.90.0050.0134.64
4.3.80.0040.0234.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0050.0134.62
4.3.40.0060.0214.54
4.3.30.0010.0173.30
4.3.20.0000.0183.28
4.3.10.0010.0173.23
4.3.00.0070.01321.15