3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar { public $someProp = 'hello world'; } class Foo { function getBar() { return new Bar(); } } $foo = new Foo(); ($foo->getBar())->someProp

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.0030.08018.16
5.6.140.0030.07018.14
5.6.130.0070.03718.18
5.6.120.0100.07021.05
5.6.110.0130.07320.98
5.6.100.0130.07020.99
5.6.90.0030.06721.03
5.6.80.0130.07320.41
5.5.300.0030.04017.99
5.5.290.0030.08017.94
5.5.280.0070.08320.90
5.5.270.0100.04720.65
5.5.260.0070.06020.79
5.5.250.0270.06720.61
5.5.240.0270.07020.26

preferences:
142.75 ms | 1398 KiB | 7 Q