3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(): void { print "test\n"; } // This currently gives an error, but you propose that it // would change to set $val to null? $val = test(); var_dump($val);

preferences:
25.28 ms | 404 KiB | 5 Q