3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $foo =2; } class Proxy extends Foo { public function getFoo() { $getter = function(){return $this->foo}; return \Closure::bind($getter, $this, 'Foo'); } } $hydrated = new Proxy(); var_dump($hydrated->getFoo());

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)
7.0.20.0430.07720.30
7.0.10.0000.09320.22
7.0.00.0130.07320.29
5.6.170.0230.05020.55
5.6.160.0030.09020.47
5.6.150.0070.06718.14
5.6.140.0070.08318.15
5.6.130.0070.07018.24
5.6.120.0100.06021.09
5.6.110.0030.04321.02
5.6.100.0000.06021.12
5.6.90.0100.05321.11
5.6.80.0070.06020.36
5.5.310.0200.07720.36
5.5.300.0000.04318.04
5.5.290.0030.04018.07
5.5.280.0000.09720.88
5.5.270.0070.04020.87
5.5.260.0070.04320.80
5.5.250.0030.06320.51
5.5.240.4230.03320.22

preferences:
138.01 ms | 1394 KiB | 7 Q