3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo ($foo, &$bar=null){ $bar = 'works'; } foo('something', $bar); var_dump($bar);

preferences:
47.03 ms | 402 KiB | 5 Q