3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $boolean = 1; $boolean = (bool) $boolean; function dump_boolean(bool $var) { var_dump($var); } dump_boolean($boolean);
based on PasmE

Here you find the average performance (time & memory) of each version. A greyed 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.3.0alpha10.0030.00712.45
7.2.60.0060.00916.50
7.2.00.0030.01319.60
7.1.100.0030.01018.21
7.1.70.0040.00417.00
7.1.60.0070.01719.43
7.1.50.0090.01516.98
7.1.00.0070.07322.40
7.0.200.0000.00716.91
7.0.100.0000.08719.95
7.0.90.0200.07019.92
7.0.80.0070.07719.84
7.0.70.0070.08020.01
7.0.60.0100.07720.03
7.0.50.0500.07020.32
7.0.40.0100.08320.07
7.0.30.0130.07720.17
7.0.20.0100.07320.17
7.0.10.0000.09020.14
7.0.00.0130.07720.18
5.6.280.0030.06321.11
5.6.250.0000.06020.50
5.6.240.0000.08720.55
5.6.230.0000.07720.69
5.6.220.0070.07720.67
5.6.210.0100.04320.49
5.6.200.0000.04720.97
5.6.190.0070.07721.14
5.6.180.0170.07320.96
5.6.170.0170.07721.02
5.6.160.0100.08021.02
5.6.150.0070.08721.17
5.6.140.0030.08321.02
5.6.130.0130.08721.00
5.6.120.0100.07721.17
5.6.110.0170.07721.05
5.6.100.0170.06320.96
5.6.90.0070.08020.98
5.6.80.0070.04720.47
5.6.70.0200.05720.43
5.6.60.0030.05020.46
5.6.50.0170.06720.52
5.6.40.0000.08720.32
5.6.30.0100.07720.41
5.6.20.0100.04320.41
5.6.10.0130.07020.29
5.6.00.0070.08320.38
5.5.380.0070.08020.49
5.5.370.0070.05020.49
5.5.360.0100.07720.39
5.5.350.0100.08020.46
5.5.340.0070.07020.90
5.5.330.0070.08720.78
5.5.320.0030.06720.89
5.5.310.0100.08020.76
5.5.300.0130.07320.80
5.5.290.0070.08720.91
5.5.280.0070.08320.71
5.5.270.0100.08320.83
5.5.260.0000.06320.77
5.5.250.0170.04020.57
5.5.240.0070.07020.18
5.5.230.0030.06320.21
5.5.220.0100.04320.18
5.5.210.0130.07320.29
5.5.200.0070.06320.28
5.5.190.0030.09020.17
5.5.180.0100.04720.12
5.5.160.0170.06720.15
5.5.150.0230.06720.11
5.5.140.0070.06320.27
5.5.130.0030.07319.98
5.5.120.0100.07020.26
5.5.110.0100.08020.14
5.5.100.0070.08020.16
5.5.90.0130.06720.07
5.5.80.0070.08020.10
5.5.70.0030.05720.11
5.5.60.0170.06719.97
5.5.50.0100.07020.13
5.5.40.0130.07020.10
5.5.30.0000.08720.16
5.5.20.0070.06020.05
5.5.10.0170.07320.05
5.5.00.0100.07320.11
5.4.450.0200.06719.26
5.4.440.0100.07719.45
5.4.430.0070.08019.49
5.4.420.0070.07719.50
5.4.410.0100.08019.38
5.4.400.0000.08018.96
5.4.390.0170.06719.13
5.4.380.0100.07019.16
5.4.370.0070.04719.09
5.4.360.0130.07019.20
5.4.350.0130.07019.12
5.4.340.0030.07019.13
5.4.320.0070.04019.04
5.4.310.0000.08018.95
5.4.300.0170.04019.03
5.4.290.0100.07019.03
5.4.280.0100.07018.88
5.4.270.0100.07319.03
5.4.260.0130.06719.04
5.4.250.0070.08018.85
5.4.240.0070.07719.04
5.4.230.0100.06319.06
5.4.220.0170.05719.12
5.4.210.0070.08018.94
5.4.200.0070.07319.20
5.4.190.0070.07719.17
5.4.180.0070.07018.87
5.4.170.0000.08318.88
5.4.160.0130.07319.11
5.4.150.0070.07019.13
5.4.140.0000.05316.46
5.4.130.0070.07316.43
5.4.120.0070.06316.32
5.4.110.0100.07316.34
5.4.100.0130.06716.44
5.4.90.0100.06716.39
5.4.80.0030.04716.45
5.4.70.0100.06716.33
5.4.60.0100.07016.37
5.4.50.0070.07316.47
5.4.40.0100.06716.31
5.4.30.0070.07316.40
5.4.20.0100.07016.48
5.4.10.0070.07716.41
5.4.00.0030.04315.86