3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { protected $bar; public function __construct(BarInterface $bar) { $this->bar = $bar; } public function doAction() { $bar->getVar(); } } interface BarInterface { public function getVar() {} } abstract class BarAbscract implements BarInterface { public function getVar() { return $this->var; } } class Bar extends BarAbscract { protected $var = __CLASS__; } class Baz extends BarAbstract { protected $var = __CLASS__; } $bar = new Bar(); $foo = new Foo($bar); $foo->doAction();

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.6.150.0100.05018.16
5.6.140.0070.06018.15
5.6.130.0000.09018.15
5.6.120.0100.08021.12
5.6.110.0070.09021.12
5.6.100.0170.07720.98
5.6.90.0070.08320.96
5.6.80.0170.08020.36
5.5.300.0100.07718.08
5.5.290.0100.06317.94
5.5.280.0030.08320.86
5.5.270.0070.04320.65
5.5.260.0000.04320.84
5.5.250.0030.08320.69
5.5.240.0170.04020.34

preferences:
138.72 ms | 1394 KiB | 7 Q