3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function doSomething(){ echo "Done testing\n"; } } $o1 = (new Test($a = 8))->doSomething();// Done testing var_dump($a); // Notice - undefined variable: a

preferences:
42.47 ms | 402 KiB | 5 Q