3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $boolean = "false"; if ($boolean) { die('false'); } die('true');

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.0080.00816.56
7.2.00.0000.01319.41
7.1.200.0070.00315.52
7.1.100.0090.00618.02
7.1.70.0000.00817.09
7.1.60.0030.02020.03
7.1.50.0070.01416.78
7.1.00.0000.08022.40
7.0.200.0000.00816.73
7.0.100.0070.05719.85
7.0.90.0030.04020.05
7.0.80.0170.03319.94
7.0.70.0070.08019.88
7.0.60.0070.07019.97
7.0.50.0000.04320.35
7.0.40.0100.03720.01
7.0.30.0070.05020.05
7.0.20.0030.04320.08
7.0.10.0030.04320.07
7.0.00.0030.04320.00
5.6.280.0030.07321.14
5.6.250.0000.06320.52
5.6.240.0070.03720.61
5.6.230.0000.04720.43
5.6.220.0070.05320.57
5.6.210.0130.07020.63
5.6.200.0030.08321.06
5.6.190.0070.05021.13
5.6.180.0130.06320.95
5.6.170.0030.04321.02
5.6.160.0100.03320.89
5.6.150.0030.05021.05
5.6.140.0000.04720.95
5.6.130.0030.05721.04
5.6.120.0070.04021.04
5.6.110.0000.04321.12
5.6.100.0070.04721.05
5.6.90.0070.05021.09
5.6.80.0030.04020.45
5.6.70.0030.04020.38
5.6.60.0130.06320.41
5.6.50.0100.03720.34
5.6.40.0030.08020.38
5.6.30.0070.08020.31
5.6.20.0070.07720.34
5.6.10.0100.07320.38
5.6.00.0170.06320.44
5.5.380.0070.03720.38
5.5.370.0100.03320.32
5.5.360.0030.05320.30
5.5.350.0100.07720.39
5.5.340.0070.03720.91
5.5.330.0070.04020.91
5.5.320.0170.03020.91
5.5.310.0000.05320.83
5.5.300.0070.03720.63
5.5.290.0030.04320.82
5.5.280.0070.04020.80
5.5.270.0030.04020.81
5.5.260.0000.04720.82
5.5.250.0130.03320.66
5.5.240.0100.03320.31
5.5.230.0030.04320.00
5.5.220.0000.06020.10
5.5.210.0130.04020.29
5.5.200.0030.06020.27
5.5.190.0100.07720.22
5.5.180.0000.08720.27
5.5.160.0170.07320.08
5.5.150.0030.07720.21
5.5.140.0170.07320.18
5.5.130.0030.08020.14
5.5.120.0100.07319.98
5.5.110.0100.05720.23
5.5.100.0130.07020.05
5.5.90.0130.06720.16
5.5.80.0130.07320.05
5.5.70.0070.07320.05
5.5.60.0070.07020.08
5.5.50.0030.05320.02
5.5.40.0070.04320.14
5.5.30.0100.06020.05
5.5.20.0100.07320.04
5.5.10.0100.07020.03
5.5.00.0030.07320.03
5.4.450.0100.06719.36
5.4.440.0030.04019.56
5.4.430.0100.03319.44
5.4.420.0070.04019.55
5.4.410.0000.04019.24
5.4.400.0030.04018.99
5.4.390.0030.04319.23
5.4.380.0000.04018.90
5.4.370.0030.04019.15
5.4.360.0070.06719.15
5.4.350.0000.07719.03
5.4.340.0100.07019.24
5.4.320.0130.06718.97
5.4.310.0030.08318.96
5.4.300.0100.07319.07
5.4.290.0100.07718.89
5.4.280.0170.03719.07
5.4.270.0000.07319.06
5.4.260.0130.07019.04
5.4.250.0070.07719.09
5.4.240.0070.07019.13
5.4.230.0000.08019.13
5.4.220.0070.07718.79
5.4.210.0030.06319.02
5.4.200.0030.07018.94
5.4.190.0130.06018.89
5.4.180.0030.08019.02
5.4.170.0100.07018.87
5.4.160.0070.07319.21
5.4.150.0100.04018.92
5.4.140.0100.07716.36
5.4.130.0070.07316.32
5.4.120.0070.07016.36
5.4.110.0130.06716.21
5.4.100.0170.05016.24
5.4.90.0000.07716.41
5.4.80.0070.04016.29
5.4.70.0000.05016.20
5.4.60.0130.07016.28
5.4.50.0070.07316.33
5.4.40.0030.04716.34
5.4.30.0030.07716.23
5.4.20.0070.07716.33
5.4.10.0070.07016.28
5.4.00.0100.07315.71