3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = ' 11 111 111 '; $a = preg_replace('#^111$#m', '222', $a); var_dump($a);
Output for 4.3.0 - 7.1.0
string(14) " 11 222 222 "