3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Manager { public $content_storage=''; public function __toString() { return $this->content_storage; } public function __call($name,array &$params) { $this->content_storage.=$this->_GetObject($name,$params).'<br>'.PHP_EOL; return $this; } } class EntryClass { public static function Launch() { return new FluentInterface; } } class FluentInterface extends Manager { public function __construct() { /** * Что-нибудь инициализируем */ } public static function _GetObject($n,array $params) { return $n; } } echo $FI=EntryClass::Launch() ->First() ->Second() ->Third(); /* Выведет First Second Third */ ?>

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.4.130.0130.03812.06
5.4.120.0120.03912.01
5.4.110.0170.05612.00
5.4.100.0130.03912.00
5.4.90.0100.04312.00
5.4.80.0110.04212.00
5.4.70.0130.04312.00
5.4.60.0100.04212.00
5.4.50.0160.05612.00
5.4.40.0120.03911.99
5.4.30.0110.04011.99
5.4.20.0120.04111.98
5.4.10.0120.04011.99
5.4.00.0200.05411.48
5.3.230.0120.04112.71
5.3.220.0110.04312.68
5.3.210.0140.04212.68
5.3.200.0130.04112.68
5.3.190.0120.04512.68
5.3.180.0140.04512.67
5.3.170.0130.04512.67
5.3.160.0120.04312.67
5.3.150.0180.06712.67
5.3.140.0130.04112.66
5.3.130.0110.04312.66
5.3.120.0120.04212.66
5.3.110.0170.05812.66
5.3.100.0120.04112.13
5.3.90.0110.04212.09
5.3.80.0120.04112.08
5.3.70.0140.05112.09
5.3.60.0140.04212.07
5.3.50.0140.04012.02
5.3.40.0160.03812.02
5.3.30.0190.05511.97
5.3.20.0110.04111.75
5.3.10.0100.04011.72
5.3.00.0130.03911.70

preferences:
138.81 ms | 1394 KiB | 7 Q