3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php phpversion() >= "7.0.0" or die(); class FooBar { public function __construct() { $this->x = 2; var_dump($this); } } $foobar = new Foobar;
based on hfUIS

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.0070.00716.84
7.2.00.0080.00319.44
7.1.200.0030.01015.64
7.1.100.0080.00618.16
7.1.70.0000.00817.02
7.1.60.0070.01719.36
7.1.50.0140.00716.84
7.1.00.0030.07722.28
7.0.200.0030.00716.75
7.0.60.0030.04019.80
7.0.50.0100.03317.87
7.0.40.0030.09320.10
7.0.30.0470.07020.16
7.0.20.0370.06020.11
7.0.10.0030.06720.21
7.0.00.0070.09020.10
5.6.280.0030.06321.09
5.6.210.0070.05320.54
5.6.200.0000.07318.12
5.6.190.0100.05320.63
5.6.180.0500.07320.53
5.6.170.0270.06720.54
5.6.160.0030.09020.55
5.6.150.0070.07718.25
5.6.140.0100.08018.19
5.6.130.0030.08718.15
5.6.120.0070.08721.05
5.6.110.0170.06321.09
5.6.100.0130.07720.99
5.6.90.0030.04720.97
5.6.80.0030.08020.53
5.5.350.0230.05720.32
5.5.340.0100.08018.09
5.5.330.0000.08320.40
5.5.320.0100.07020.42
5.5.310.0270.07720.30
5.5.300.0000.04318.05
5.5.290.0100.03717.98
5.5.280.0070.04020.73
5.5.270.0100.05320.97
5.5.260.0070.08720.96
5.5.250.0230.07320.58
5.5.240.0370.06020.35
5.4.450.0270.04319.19
5.4.440.0170.05719.61
5.4.430.0270.04319.38
5.4.420.0170.06019.46
5.4.410.0230.06719.56
5.4.400.0230.04319.00
5.4.390.0230.04719.15
5.4.380.0130.05719.14
5.4.370.0200.04719.25
5.4.360.0200.08019.24
5.4.350.0170.05018.84
5.4.340.0100.06019.28
5.4.320.0170.05319.14
5.4.310.0200.04719.28
5.4.300.0130.05318.97
5.4.290.0270.04319.12
5.4.280.0200.05018.86
5.4.270.0270.05319.36
5.4.260.0270.04319.12
5.4.250.0270.04318.86
5.4.240.0200.04719.10
5.4.230.0100.05719.27
5.4.220.0300.04318.96
5.4.210.0170.05719.12
5.4.200.0200.05019.25
5.4.190.0270.04719.21
5.4.180.0270.04318.83
5.4.170.0130.06019.13
5.4.160.0270.04719.02
5.4.150.0100.06318.95
5.4.140.0330.04316.41
5.4.130.0230.04316.54
5.4.120.0170.05016.43
5.4.110.0170.05316.64
5.4.100.0230.04316.47
5.3.290.0330.03714.72
5.3.280.0200.05014.64
5.3.270.0200.05314.57
5.3.260.0100.06014.57
5.3.250.0230.04314.75
5.3.240.0170.06014.50
5.3.230.0230.04714.67
5.3.220.0270.04714.46
5.3.210.0200.05714.64
5.3.200.0130.05014.47