3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = " select 'a' as `áčko` "; preg_match("~^\s*(SELECT|INSERT|UPDATE|DELETE)\s+~i", $d, $m); $m[1][0] = strtoupper($m[1][0]); echo $m[1].'Query';
Output for 4.3.0 - 7.1.7
SelectQuery