3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php preg_replace('!\D!g', '', '1a2b3');
Output for 4.3.11 - 7.1.7
Warning: preg_replace(): Unknown modifier 'g' in /in/9nim5 on line 1
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/9nim5 on line 1