3v4l.org

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

preferences:
37.01 ms | 402 KiB | 5 Q