3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function getFoo() { return "FOO!"; } } class Bar { protected function getClass() { return 'Foo'; } } $a = new Bar(); $b = new ($a->getClass()); var_dump($b->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)
5.6.160.0070.08720.71
5.6.150.0070.08318.19
5.6.140.0070.07018.15
5.6.130.0030.04318.12
5.6.120.0070.03720.99
5.6.110.0100.08320.99
5.6.100.0100.07720.98
5.6.90.0070.03721.04
5.6.80.0030.09320.36
5.5.300.0070.03717.98
5.5.290.0000.09017.96
5.5.280.0100.08320.90
5.5.270.0030.09320.80
5.5.260.0100.08320.76
5.5.250.0100.08720.69
5.5.240.0170.07320.13

preferences:
30.96 ms | 400 KiB | 5 Q