3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = "my.stuff"; $$var = "bla bla"; echo "$$var is set to " . $$var; echo $my.stuff;
based on n1iNU
Output for 7.2.0
$my.stuff is set to bla bla Warning: Use of undefined constant stuff - assumed 'stuff' (this will throw an Error in a future version of PHP) in /in/F0RWQ on line 6 Notice: Undefined variable: my in /in/F0RWQ on line 6 stuff
Output for 5.3.18 - 7.1.10
$my.stuff is set to bla bla Notice: Use of undefined constant stuff - assumed 'stuff' in /in/F0RWQ on line 6 Notice: Undefined variable: my in /in/F0RWQ on line 6 stuff