3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = "' group by name#"; if(!preg_match('/sleep|benchmark|and|or|\||&/i', $name)) { echo "SELECT name,email FROM user where name='".$name."'"; } else { echo "loser"; } ?>
based on aRIZj
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
SELECT name,email FROM user where name='' group by name#'
Output for hhvm-3.10.0

Process exited with code 153.