3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test2 { } class test3 { } class test { private $title ='test2'; function aaa() { return new $this->title(); } function bbb() { $title =$this->title(); return new $this->title()(); } function title() { return 'test3'; } } $t = new test; var_dump($t->aaa()); var_dump($t->bbb()); ?>

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.07318.21
5.6.140.0100.07318.19
5.6.130.0100.07718.27
5.6.120.0000.04320.96
5.6.110.0070.09020.90
5.6.100.0130.06021.03
5.6.90.0130.07720.98
5.6.80.0000.04320.54
5.5.300.0070.09017.98
5.5.290.0000.06017.98
5.5.280.0200.07320.81
5.5.270.0030.05320.86
5.5.260.0170.05720.77
5.5.250.0030.08020.80
5.5.240.0170.04320.07

preferences:
140.37 ms | 1394 KiB | 7 Q