3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "{uuid}/{filename}"; $data = array("uuid" => "derp", "filename" => "foo"); foreach ($data as $key => $val){ echo "{".$key."}"; str_replace($key, "{".$key."}", $string); } echo $string;
Output for 4.3.0 - 7.1.0
{uuid}{filename}{uuid}/{filename}