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 Dr5Gu
Output for 4.3.0 - 7.2.0
My $variable will not print!\nMy name will print!\n