3v4l.org

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