3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ${'x'} = 'a thing of beauty ...'; $z = ${'x'}; echo "${z}\n"; echo ${z},"\n";
based on 6sKr9
Output for 7.2.0
a thing of beauty ... Warning: Use of undefined constant z - assumed 'z' (this will throw an Error in a future version of PHP) in /in/XYarA on line 5 a thing of beauty ...
Output for 5.3.21 - 7.1.10
a thing of beauty ... Notice: Use of undefined constant z - assumed 'z' in /in/XYarA on line 5 a thing of beauty ...