3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str="\0\0\0>fake start"; var_dump($str); echo preg_replace('~\0~', 'N', $str);
based on J8q9B
Output for 4.3.0 - 7.1.0
string(14) ">fake start" NNN>fake start