3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_content = 'SELECT * FROM `some-database` WHERE 1=1 ORDER BY ID ASC LIMIT 0,1'; if(preg_match('#order by [`]?(\w+)[`]? asc#i', $_content)==1) {echo "true";} else {echo "false";}
based on naPAF
Output for 5.3.17 - 7.2.0
true