3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "{uuid}/{filename}"; $data = array("uuid" => "derp", "filename" => "foo"); foreach ($data as $key => $val){ echo "{".$key."}".PHP_EOL; echo $val.PHP_EOL; $string = str_replace("{".$key."}", $val, $string); } echo $string;

preferences:
38.38 ms | 402 KiB | 5 Q