3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_replace("/[^a-z0-9]+/ig", "", "TEST TEST TEST");
Output for 5.2.3 - 7.1.0
Warning: preg_replace(): Unknown modifier 'g' in /in/e9KKF on line 2
Output for 4.4.3 - 5.2.2
<br /> <b>Warning</b>: preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Unknown modifier 'g' in <b>/in/e9KKF</b> on line <b>2</b><br />
Output for 4.3.11 - 4.4.2
<br /> <b>Warning</b>: preg_replace(): Unknown modifier 'g' in <b>/in/e9KKF</b> on line <b>2</b><br />
Output for 4.3.0 - 4.3.10
<br /> <b>Warning</b>: Unknown modifier 'g' in <b>/in/e9KKF</b> on line <b>2</b><br />