3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $list = array("hi" => 0, "man" => 1); $string="hi man, how are you? Man is here. Hi again."; echo str_replace(array_keys($list),array_values($list),$string);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0 1, how are you? Man is here. Hi again.