3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { private $test1; public static function testing(Test $var) { $var->test1 = 'test'; var_dump($var); } } Test::testing();

preferences:
53.67 ms | 402 KiB | 5 Q