3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { private $bar; private $file; public __construct($fileName) { $this->bar = 'foobar'; $this->file = $fileName; } // Some more code hereā€¦ public __toString() { return file_get_contents($this->file); } } ?>

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)
5.4.190.0230.06319.23
5.4.180.0330.04319.07
5.4.170.0230.06719.05
5.4.160.0300.06719.07
5.4.150.0270.07019.18
5.4.140.0300.07016.50
5.4.130.0130.06716.46
5.4.120.0170.05016.39
5.4.110.0130.04016.56
5.4.100.0230.06316.58
5.4.90.0270.05316.34
5.4.80.0200.03716.34
5.4.70.0170.03716.36
5.4.60.0200.03316.38
5.4.50.0200.07316.52
5.4.40.0270.04016.32
5.4.30.0300.05716.48
5.4.20.0170.03716.43
5.4.10.0170.07016.48
5.4.00.0230.04015.95
5.3.270.0170.03714.66
5.3.260.0130.08314.50
5.3.250.0170.04714.67
5.3.240.0270.06314.65
5.3.230.0170.04714.60
5.3.220.0170.07014.79
5.3.210.0200.06014.78
5.3.200.0170.07314.46
5.3.190.0230.05014.64
5.3.180.0170.04314.48
5.3.170.0200.07314.53
5.3.160.0230.05714.55
5.3.150.0230.03714.66
5.3.140.0230.06314.52
5.3.130.0370.06014.62
5.3.120.0270.03314.62
5.3.110.0170.05314.46
5.3.100.0130.04314.11
5.3.90.0130.04014.10
5.3.80.0230.04713.91
5.3.70.0370.03013.92
5.3.60.0230.07013.90
5.3.50.0300.03713.85
5.3.40.0170.04013.97
5.3.30.0230.06014.04
5.3.20.0270.04013.59
5.3.10.0230.05013.63
5.3.00.0270.07013.54