3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $_bar; public function __construct($bar) { $this->_bar = $bar; } public static function baz($bar) { $foo = new self($bar); var_dump($foo->_bar); } } Foo::baz('bar');

preferences:
42.45 ms | 402 KiB | 5 Q