3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $template = "[HOGE]HOGE"; $body = $template; $body = str_replace( "[HOGE]", "huga", $body ); echo "body:$body\n"; echo "$template:$template\n";
Output for 4.3.0 - 7.2.0
body:hugaHOGE [HOGE]HOGE:[HOGE]HOGE