3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $foo =2; }; class Proxy extend 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.0370.07020.30
7.0.10.0130.05020.07
7.0.00.0100.04020.32
5.6.170.0270.07020.55
5.6.160.0030.07720.56
5.6.150.0100.08018.29
5.6.140.0030.08318.22
5.6.130.0030.05318.15
5.6.120.0070.05021.10
5.6.110.0000.04321.07
5.6.100.0000.06020.96
5.6.90.0170.08020.88
5.6.80.0130.07720.51
5.5.310.0170.05020.27
5.5.300.0000.04318.04
5.5.290.0170.06718.02
5.5.280.0100.07020.87
5.5.270.0100.04720.97
5.5.260.0030.07720.96
5.5.250.0070.07320.61
5.5.240.4200.03720.17

preferences:
146.14 ms | 1394 KiB | 7 Q