3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $toto = 3; $toto *= $toto; $toto+=$toto; echo $toto;
based on AcbWU

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.0030.00619.50
7.1.100.0030.00617.73
7.1.70.0000.00916.96
7.1.60.0120.01219.50
7.1.50.0100.01316.91
7.1.00.0030.07722.30
7.0.200.0060.00614.77
7.0.140.0070.07022.07
7.0.110.0570.05720.10
7.0.100.0530.07719.96
7.0.90.0600.08020.00
7.0.80.0070.04320.00
7.0.70.0230.04019.88
7.0.60.0200.03720.00
7.0.50.0100.04320.46
7.0.40.0000.04320.26
7.0.30.0070.04020.28
7.0.20.0030.05720.20
7.0.10.0030.04020.06
7.0.00.0030.05320.11
5.6.280.0130.06321.11
5.6.250.0070.06720.58
5.6.240.0070.08320.66
5.6.230.0030.04320.70
5.6.220.0000.04320.69
5.6.210.0030.04320.71
5.6.200.0100.03721.14
5.6.190.0100.04720.95
5.6.180.0070.04021.10
5.6.170.0070.04721.26
5.6.160.0100.03321.29
5.6.150.0000.04321.29
5.6.140.0100.03721.13
5.6.130.0100.07320.97
5.6.120.0030.04321.08
5.6.110.0070.04021.04
5.6.100.0070.04321.03
5.6.90.0030.04320.96
5.6.80.0030.04020.31
5.6.70.0030.04020.59
5.6.60.0030.03720.29
5.6.50.0100.06320.50
5.6.40.0030.04020.50
5.6.30.0100.03720.40
5.6.20.0200.05020.52
5.6.10.0030.04020.55
5.6.00.0100.04020.44
5.5.380.0030.05020.33
5.5.370.0070.03720.45
5.5.360.0030.04320.55
5.5.350.0030.04320.43
5.5.340.0000.06720.95
5.5.330.0030.04320.66
5.5.320.0070.04021.03
5.5.310.0030.04020.94
5.5.300.0000.05721.02
5.5.290.0030.04320.73
5.5.280.0070.04020.98
5.5.270.0100.04020.93
5.5.260.0100.04320.97
5.5.250.0100.03320.75
5.5.240.0070.04020.26
5.5.230.0030.04320.21
5.5.220.0030.04020.11
5.5.210.0030.04720.24
5.5.200.0100.03320.30
5.5.190.0070.04020.23
5.5.180.0030.05020.29
5.5.160.0030.04020.30
5.5.150.0030.07020.29
5.5.140.0100.03320.31
5.5.130.0030.07320.20
5.5.120.0070.04720.25
5.5.110.0030.08320.15
5.5.100.0100.07320.07
5.5.90.0070.08020.01
5.5.80.0070.07720.21
5.5.70.0070.08020.21
5.5.60.0100.03320.00
5.5.50.0070.08320.00
5.5.40.0070.04320.22
5.5.30.0100.07020.08
5.5.20.0030.08320.18
5.5.10.0100.07720.13
5.5.00.0070.03720.09
5.4.450.0070.04319.34
5.4.440.0000.04319.33
5.4.430.0030.04019.48
5.4.420.0030.04719.27
5.4.410.0100.03319.13
5.4.400.0030.05019.03
5.4.390.0100.05319.16
5.4.380.0070.05718.93
5.4.370.0000.04019.25
5.4.360.0030.04019.02
5.4.350.0070.03719.01
5.4.340.0030.04018.98
5.4.320.0000.04019.11
5.4.310.0100.03319.03
5.4.300.0030.07719.10
5.4.290.0070.07718.98
5.4.280.0070.06019.24
5.4.270.0030.07719.00
5.4.260.0070.07319.24
5.4.250.0070.08019.00
5.4.240.0070.07319.02
5.4.230.0030.05019.17
5.4.220.0100.06319.11
5.4.210.0100.07718.96
5.4.200.0030.05018.92
5.4.190.0070.04719.18
5.4.180.0070.04019.02
5.4.170.0030.05319.11
5.4.160.0100.06718.97
5.4.150.0030.07318.93
5.4.140.0070.07016.56
5.4.130.0030.05016.21
5.4.120.0100.07316.48
5.4.110.0070.04316.36
5.4.100.0100.03016.13
5.4.90.0200.06016.32
5.4.80.0070.04716.21
5.4.70.0170.06316.48
5.4.60.0170.05716.47
5.4.50.0100.07016.18
5.4.40.0030.08016.39
5.4.30.0070.07016.11
5.4.20.0100.06016.25
5.4.10.0100.04316.37
5.4.00.0070.07015.90
5.3.290.0030.06714.68
5.3.280.0070.04714.66
5.3.270.0000.08014.50
5.3.260.0130.07714.54
5.3.250.0130.06714.43
5.3.240.0100.05714.61
5.3.230.0070.07314.42
5.3.220.0030.07314.56
5.3.210.0030.06014.66
5.3.200.0030.03714.41
5.3.190.0070.07314.48
5.3.180.0070.07014.50
5.3.170.0030.04314.57
5.3.160.0000.05014.50
5.3.150.0000.05714.45
5.3.140.0070.07714.40
5.3.130.0030.08314.44
5.3.120.0000.09014.42
5.3.110.0130.07314.37
5.3.100.0130.06313.90
5.3.90.0070.07313.88
5.3.80.0100.07313.85
5.3.70.0070.07314.02
5.3.60.0130.07014.06
5.3.50.0070.07313.74
5.3.40.0100.03713.91
5.3.30.0070.06713.75
5.3.20.0100.07013.64
5.3.10.0030.04713.58
5.3.00.0000.07713.52
5.2.170.0000.07011.09
5.2.160.0000.06311.21
5.2.150.0030.06311.20
5.2.140.0070.06311.03
5.2.130.0000.04011.25
5.2.120.0000.06711.03
5.2.110.0070.06010.99
5.2.100.0130.05011.04
5.2.90.0030.06311.05
5.2.80.0070.06311.02
5.2.70.0000.05310.88
5.2.60.0070.06310.97
5.2.50.0000.05710.94
5.2.40.0100.03710.94
5.2.30.0000.04310.91
5.2.20.0000.06710.89
5.2.10.0030.06010.98
5.2.00.0070.05710.70
5.1.60.0030.0339.96
5.1.50.0070.0509.96
5.1.40.0030.0509.95
5.1.30.0000.06010.46
5.1.20.0000.06010.36
5.1.10.0030.05310.03
5.1.00.0030.05710.05
5.0.50.0070.0438.52
5.0.40.0000.0478.57
5.0.30.0000.0738.37
5.0.20.0100.0378.18
5.0.10.0070.0408.13
5.0.00.0000.0637.99
4.4.90.0070.0307.99
4.4.80.0030.0337.99
4.4.70.0000.0377.99
4.4.60.0030.0377.99
4.4.50.0000.0377.99
4.4.40.0070.0507.99
4.4.30.0000.0377.99
4.4.20.0000.0337.99
4.4.10.0000.0407.99
4.4.00.0030.0307.99
4.3.110.0070.0307.99
4.3.100.0130.0277.99
4.3.90.0030.0307.99
4.3.80.0000.0577.99
4.3.70.0000.0407.99
4.3.60.0030.0377.99
4.3.50.0070.0307.99
4.3.40.0000.0407.99
4.3.30.0000.0377.99
4.3.20.0000.0377.99
4.3.10.0030.0377.99
4.3.00.0030.0177.99