3v4l.org

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