3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj=array('asd'=>'asdasd', 'ad' => 'asasas'); $obj = str_replace('s','',$obj); var_dump($obj);
Output for 4.3.0 - 7.1.0
array(2) { ["asd"]=> string(4) "adad" ["ad"]=> string(3) "aaa" }