3v4l.org

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

preferences:
42.49 ms | 402 KiB | 5 Q