3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a($b) { if($b===NULL) echo '$b is NULL<br/>'; if($b!==NULL) echo '$b isnt NULL<br/>'; var_dump($b); } a();

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.53
7.2.00.0040.00818.99
7.1.200.0000.01115.36
7.1.100.0040.00718.13
7.1.70.0070.00716.99
7.1.60.0000.02219.11
7.1.50.0200.01634.39
7.1.00.0100.07022.44
7.0.200.0130.00314.83
7.0.120.0070.08021.95
7.0.110.0100.08321.96
7.0.100.0030.08721.90
7.0.90.0030.04022.14
7.0.80.0000.05722.02
7.0.70.0130.07322.14
7.0.60.0000.04022.03
7.0.50.0000.05022.03
7.0.40.0070.04319.92
7.0.30.0070.04719.89
7.0.20.0070.03320.12
7.0.10.0000.04019.88
7.0.00.0030.04020.07
5.6.280.0030.03721.07
5.6.270.0100.07721.08
5.6.260.0000.08720.89
5.6.250.0070.08320.79
5.6.240.0030.04021.08
5.6.230.0100.07720.96
5.6.220.0030.07720.78
5.6.210.0130.03320.91
5.6.200.0030.04020.97
5.6.190.0000.05020.79
5.6.180.0000.04020.82
5.6.170.0030.04320.67
5.6.160.0000.04721.00
5.6.150.0070.06020.66
5.6.140.0000.04320.96
5.6.130.0100.07320.74
5.6.120.0030.06720.87
5.6.110.0030.06320.65
5.6.100.0000.05320.73
5.6.90.0130.06020.99
5.6.80.0000.06320.15
5.6.70.0070.07720.37
5.6.60.0000.08720.38
5.6.50.0100.06320.26
5.6.40.0070.06320.11
5.6.30.0070.08020.19
5.6.20.0100.07320.36
5.6.10.0070.06720.36
5.6.00.0030.03719.98
5.5.380.0070.04717.70
5.5.370.0070.03317.59
5.5.360.0070.03317.58
5.5.350.0030.03717.50
5.5.340.0030.05317.94
5.5.330.0000.04018.01
5.5.320.0030.05318.05
5.5.310.0000.04018.09
5.5.300.0070.03317.94
5.5.290.0130.02718.05
5.5.280.0000.08717.88
5.5.270.0030.07018.23
5.5.260.0030.05018.04
5.5.250.0030.06017.86
5.5.240.0130.06717.35
5.5.230.0070.04317.46
5.5.220.0070.07017.43
5.5.210.0030.07317.43
5.5.200.0030.06017.27
5.5.190.0100.06017.43
5.5.180.0070.05717.36
5.5.160.0070.07317.44
5.5.150.0000.06717.44
5.5.140.0070.07317.40
5.5.130.0030.03717.56
5.5.120.0030.07017.40
5.5.110.0070.03717.38
5.5.100.0000.08017.30
5.5.90.0000.07317.26
5.5.80.0070.03717.48
5.5.70.0030.07017.15
5.5.60.0030.03317.45
5.5.50.0070.03017.47
5.5.40.0000.06317.05
5.5.30.0000.05017.29
5.5.20.0100.07017.47
5.5.10.0030.06717.31
5.5.00.0070.05317.28
5.4.450.0000.03719.40
5.4.440.0000.06019.29
5.4.430.0030.08319.41
5.4.420.0000.05719.25
5.4.410.0070.03719.32
5.4.400.0100.06718.92
5.4.390.0030.07719.09
5.4.380.0030.07019.14
5.4.370.0100.06718.94
5.4.360.0070.06018.95
5.4.350.0000.03718.90
5.4.340.0070.06019.03
5.4.320.0030.06718.93
5.4.310.0000.08019.13
5.4.300.0000.06018.96
5.4.290.0030.06318.93
5.4.280.0000.07318.92
5.4.270.0030.04718.88
5.4.260.0070.06718.92
5.4.250.0070.07319.21
5.4.240.0000.05318.93
5.4.230.0000.07719.21
5.4.220.0070.07318.95
5.4.210.0000.06719.04
5.4.200.0030.04719.11
5.4.190.0000.04719.00
5.4.180.0030.06719.00
5.4.170.0030.03319.10
5.4.160.0030.04018.90
5.4.150.0030.07319.05
5.4.140.0000.05316.26
5.4.130.0030.03716.32
5.4.120.0170.06016.35
5.4.110.0100.07016.50
5.4.100.0030.03316.30
5.4.90.0030.06716.42
5.4.80.0130.05316.45
5.4.70.0030.06716.39
5.4.60.0100.05016.38
5.4.50.0070.06716.32
5.4.40.0100.06016.43
5.4.30.0070.07016.43
5.4.20.0100.04016.18
5.4.10.0100.07016.45
5.4.00.0100.07015.73