3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $template = 'Some text with a {value}'; $data = 0; $template = str_replace('{value}', $data, $template); echo $template;
Output for 4.3.0 - 7.2.0
Some text with a 0