3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "my.stuff"; $$var = "bla bla"; echo "$$var is set to " . $$var; var_dump(get_defined_variables());
based on F0RWQ
Output for 7.0.0 - 7.2.0
$my.stuff is set to bla bla Fatal error: Uncaught Error: Call to undefined function get_defined_variables() in /in/lccOv:6 Stack trace: #0 {main} thrown in /in/lccOv on line 6
Process exited with code 255.
Output for 5.3.18 - 5.6.28
$my.stuff is set to bla bla Fatal error: Call to undefined function get_defined_variables() in /in/lccOv on line 6
Process exited with code 255.