3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $book="ABC"; $name="book"; $php="name"; $language="php"; print($book); print(\n); print($$name); print(\n); print($$$php); print($$$$language);
based on kaKgs
Output for 7.0.0 - 7.2.0
ABC Fatal error: Uncaught Error: Undefined constant 'n' in /in/SkLYF:7 Stack trace: #0 {main} thrown in /in/SkLYF on line 7
Process exited with code 255.
Output for 5.3.18 - 5.6.28
ABC Fatal error: Undefined constant 'n' in /in/SkLYF on line 7
Process exited with code 255.