3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class add{ function add($a) { $d=$a+1; echo $d; } } $xin = new add(); $xin->add(1); ?>

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.0070.00716.83
7.2.00.0000.01319.30
7.1.200.0140.00015.62
7.1.100.0030.00617.74
7.1.70.0040.00716.86
7.1.60.0070.01719.40
7.1.50.0060.01916.96
7.1.00.0070.07322.51
7.0.200.0130.00614.56
7.0.140.0030.07722.10
7.0.120.0070.06722.05
7.0.60.0030.04020.07
7.0.50.0130.07317.86
7.0.40.0130.07720.29
7.0.30.0400.03720.13
7.0.20.0270.05020.09
7.0.10.0030.08720.30
7.0.00.0070.07720.10
5.6.280.0000.05021.07
5.6.210.0070.03720.45
5.6.200.0000.08718.14
5.6.190.0030.05020.61
5.6.180.0270.07720.48
5.6.170.0230.06020.53
5.6.160.0100.08020.50
5.6.150.0100.07718.18
5.6.140.0100.03318.18
5.6.130.0070.07318.28
5.6.120.0070.07720.99
5.6.110.0070.09321.12
5.6.100.0130.08021.13
5.6.90.0070.06021.00
5.6.80.0000.04320.31
5.6.70.2770.04020.41
5.5.350.0070.08720.41
5.5.340.0100.03717.98
5.5.330.0130.08020.13
5.5.320.0070.08020.27
5.5.310.0230.06720.37
5.5.300.0100.07018.08
5.5.290.0000.04317.98
5.5.280.0130.08020.68
5.5.270.0070.08720.86
5.5.260.0130.03320.88
5.5.250.0070.03720.69
5.5.240.0300.06720.27
5.4.450.0100.05019.45
5.4.440.0130.03319.48
5.4.430.0070.04319.20
5.4.420.0130.07719.56
5.4.410.0070.07019.44
5.4.400.0100.07318.92
5.4.390.0000.04719.24
5.4.380.0030.08019.24
5.4.370.0070.06718.84
5.4.360.0030.07018.85
5.4.350.0170.06719.15
5.4.340.0170.06019.11
5.4.320.0030.06719.00
5.4.310.0030.06719.01
5.4.300.0000.05318.92
5.4.290.0100.07019.15
5.4.280.0030.07019.14
5.4.270.0030.04719.00
5.4.260.0070.04319.14
5.4.250.0000.04018.97
5.4.240.0070.05018.99
5.4.230.0000.05018.94
5.4.220.0030.05019.11
5.4.210.0030.03719.14
5.4.200.0100.06019.13
5.4.190.0070.04019.13
5.4.180.0100.07019.13
5.4.170.0070.06719.14
5.4.160.0130.04018.90
5.4.150.0030.04718.96
5.4.140.0030.06316.28
5.4.130.0070.07316.50
5.4.120.0030.04716.41
5.4.110.0070.07316.39
5.4.100.0070.04316.38
5.4.90.0000.07716.49
5.4.80.0030.06316.40
5.4.70.0200.03316.35
5.4.60.0070.07316.39
5.4.50.0100.07316.38
5.4.40.0000.04316.47
5.4.30.0130.06716.40
5.4.20.0030.05016.38
5.4.10.0070.07716.50
5.4.00.0100.06015.74
5.3.290.0030.04714.81
5.3.280.0070.07714.61
5.3.270.0070.06714.65
5.3.260.0030.05014.65
5.3.250.0130.04714.60
5.3.240.0100.07314.52
5.3.230.0100.04714.59
5.3.220.0070.04014.57
5.3.210.0000.04714.59
5.3.200.0100.06714.60
5.3.190.0070.07314.61
5.3.180.0070.06714.57
5.3.170.0030.06714.61
5.3.160.0100.03014.45
5.3.150.0100.07314.63
5.3.140.0070.07714.55
5.3.130.0000.04714.55
5.3.120.0000.06014.54
5.3.110.0070.07714.57
5.3.100.0100.06314.05
5.3.90.0030.04714.17
5.3.80.0070.07313.91
5.3.70.0030.05313.98
5.3.60.0070.07314.15
5.3.50.0030.05313.96
5.3.40.0070.03713.86
5.3.30.0030.06314.06
5.3.20.0070.05313.69
5.3.10.0070.03013.68
5.3.00.0030.04013.53
5.2.170.0030.03311.31
5.2.160.0030.06311.16
5.2.150.0030.06011.30
5.2.140.0030.06311.20
5.2.130.0030.03011.25
5.2.120.0030.03311.11
5.2.110.0070.03711.13
5.2.100.0070.03711.02
5.2.90.0000.03711.13
5.2.80.0030.06311.05
5.2.70.0070.03311.11
5.2.60.0100.06011.13
5.2.50.0130.03011.07
5.2.40.0070.03010.88
5.2.30.0100.04310.93
5.2.20.0030.04311.10
5.2.10.0070.05711.00
5.2.00.0100.05310.73
5.1.60.0000.03010.01
5.1.50.0030.02310.06
5.1.40.0030.05710.11
5.1.30.0030.06010.36
5.1.20.0030.05710.49
5.1.10.0030.05710.05
5.1.00.0030.06010.12
5.0.50.0000.0308.70
5.0.40.0000.0438.70
5.0.30.0070.0478.70
5.0.20.0030.0408.70
5.0.10.0000.0278.70
5.0.00.0030.0678.70
4.4.90.0100.0178.70
4.4.80.0030.0278.70
4.4.70.0000.0408.70
4.4.60.0000.0278.70
4.4.50.0030.0338.70
4.4.40.0000.0308.70
4.4.30.0000.0178.70
4.4.20.0100.0308.70
4.4.10.0000.0308.70
4.4.00.0000.0578.70
4.3.110.0030.0338.70
4.3.100.0000.0378.70
4.3.90.0070.0278.70
4.3.80.0030.0538.70
4.3.70.0030.0238.70
4.3.60.0100.0178.70
4.3.50.0000.0308.70
4.3.40.0030.0408.70
4.3.30.0070.0238.70
4.3.20.0030.0338.70
4.3.10.0000.0408.70
4.3.00.0000.0338.70