<?php $foo = "SOpt"; function foo () { $var = "foo"; echo $$var, PHP_EOL;} foo();
Standard input is empty
PHP Notice: Undefined variable: foo in /home/FH5jnx/prog.php on line 8
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!