3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val = "hello world"; echo "{$val} and other planets!"; function sayHello($name) { echo "Hello {$name}, how are you?"; } sayHello(Angus); ?>
based on n9Oju
Output for 7.2.0 - 7.3.0rc3
hello world and other planets! Warning: Use of undefined constant Angus - assumed 'Angus' (this will throw an Error in a future version of PHP) in /in/ljAco on line 10 Hello Angus, how are you?
Output for 5.5.0 - 7.1.20
hello world and other planets! Notice: Use of undefined constant Angus - assumed 'Angus' in /in/ljAco on line 10 Hello Angus, how are you?