3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $user ='pierre'; $sql = "SELECT * FROM muziek WHERE user= '$user'"; echo $sql; unset($sql); $sql = 'SELECT * FROM muziek WHERE user=$user'; echo $sql; ?>
Output for 4.3.0 - 7.1.0
SELECT * FROM muziek WHERE user= 'pierre'SELECT * FROM muziek WHERE user=$user