3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $variable = "name"; $literally = 'My $variable will not print!\\n'; print($literally); $literally = "My $variable will print!\\n"; print($literally); ?>
based on PtaKi
Output for 4.3.0 - 7.1.7
My $variable will not print!\nMy name will print!\n