3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { protected $commands = ['foo', 'bar']; public function commands($command) { var_dump($command); } public function boot() { foreach ($this->commands as $command) { $this->commands($command); } } } (new Test())->boot();

preferences:
40.13 ms | 402 KiB | 5 Q