3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = preg_replace('/(\d)/g','12345', '\1a'); echo $a;
Output for 4.3.11 - 7.1.10
Warning: preg_replace(): Unknown modifier 'g' in /in/fbNaf on line 2
Output for 4.3.0 - 4.3.10
Warning: Unknown modifier 'g' in /in/fbNaf on line 2