3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $query = 'SELECT * FROM akmailmkt_10001.TMEMMSG WHERE 1=1 AND emmsg_tipo_mensagem != "S" AND emmsg_cliente = 10001 ORDER BY emmsg_data DESC'; echo preg_replace('SELECT (.*) FROM', 'SELECT COUNT(*) FROM', $query);
Output for 4.3.11 - 5.6.30, 7.0.0 - 7.3.0rc6
Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/pPS1k on line 5
Output for 4.3.0 - 4.3.10, hhvm-3.10.1 - 3.17.3
Warning: Delimiter must not be alphanumeric or backslash in /in/pPS1k on line 5