3v4l.org

run code in 300+ PHP versions simultaneously
<?php function withRef(&$zomg) { $zomg = 'hello world!'; } withRef(null);
Output for 5.6.0 - 5.6.26, 7.0.0 - 7.0.11
Fatal error: Only variables can be passed by reference in /in/b342d on line 7
Process exited with code 255.

preferences:
42.17 ms | 406 KiB | 5 Q