3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php try{ $a = new class { public function func():self{return "";} }; (null)->getSome(); //$res = $a->func(); var_dump($res); }catch(Throwable $ex){ echo "Catched error" .$ex->getMessage(); }
based on OChJ3

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.2.00.0090.00619.64
7.1.100.0060.00618.21
7.1.70.0030.00717.19
7.1.60.0140.01019.36
7.1.50.0030.01016.73
7.1.00.0030.07722.44
7.0.200.0030.00716.82
7.0.60.0000.09019.78
7.0.50.0200.06317.88
7.0.40.0030.07720.11
7.0.30.0270.08020.21
7.0.20.0430.05320.20
7.0.10.0130.07320.10
7.0.00.0030.04020.26
5.6.280.0030.07720.91
5.6.210.0100.07720.61
5.6.200.0000.04718.19
5.6.190.0100.07320.52
5.6.180.0400.04320.50
5.6.170.0300.07720.47
5.6.160.0070.08320.52
5.6.150.0100.05718.22
5.6.140.0030.04018.18
5.6.130.0130.04718.27
5.6.120.0170.06721.00
5.6.110.0030.06320.98
5.6.100.0130.03020.98
5.6.90.0130.06320.93
5.6.80.0030.06720.37
5.5.350.0230.07320.42
5.5.340.0030.04017.99
5.5.330.0070.06020.19
5.5.320.0000.05720.24
5.5.310.0300.05020.55
5.5.300.0070.08017.95
5.5.290.0030.04318.08
5.5.280.0100.04320.76
5.5.270.0000.04320.86
5.5.260.0170.06720.86
5.5.250.0030.08020.68
5.5.240.4170.03720.35
5.4.450.0200.05719.45
5.4.440.0600.07319.45
5.4.430.0600.04719.20
5.4.420.0770.04719.46
5.4.410.0700.06019.46
5.4.400.0470.06718.86
5.4.390.0500.06019.25
5.4.380.0630.05319.30
5.4.370.0800.03718.85
5.4.360.0630.06019.37
5.4.350.0670.06719.24
5.4.340.0500.06718.97
5.4.320.0670.06719.38
5.4.310.0770.05319.12
5.4.300.0800.05318.84
5.4.290.0700.05319.14
5.4.280.0570.07318.98
5.4.270.0630.05319.12
5.4.260.0700.05019.05
5.4.250.0670.05319.22
5.4.240.0570.05719.28
5.4.230.0530.06319.13
5.4.220.0570.06319.27
5.4.210.0800.07019.04
5.4.200.0700.05719.21
5.4.190.0770.05319.13
5.4.180.0730.07018.97
5.4.170.0970.05719.25
5.4.160.0670.04719.10
5.4.150.0600.05719.35
5.4.140.0770.04716.32
5.4.130.0700.07016.48
5.4.120.0600.05316.54
5.4.110.0600.05316.26
5.4.100.0830.05016.62
5.4.90.0600.05716.60
5.3.290.0870.04014.55
5.3.280.0500.07714.57
5.3.270.0830.05314.46
5.3.260.0600.06314.59
5.3.250.0800.06314.45
5.3.240.0870.06314.55
5.3.230.0530.05714.44
5.3.220.0600.06014.42
5.3.210.0630.07014.52
5.3.200.0700.06014.59
5.3.190.0500.07314.53