3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php preg_replace('!\D!g', '', '1a2b3');
Output for 4.3.11 - 5.6.26, 7.0.0 - 7.1.0
Warning: preg_replace(): Unknown modifier 'g' in /in/9nim5 on line 1
Output for hhvm-3.10.0 - 3.13.2
Warning: Unknown modifier 'g': [!\D!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