3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace(array('/#{([^{}]*)(\s?)}/', '/#{([^{}]*)(\s*)(.*)}/'), array('<?=$1?>', '<?=$1($3)?>'), "href:#{\$name}?id=#{\$id} Link"); echo preg_replace(array('/#{([^{}]*)(\s?)}/', '/#{([^{}]*)(\s*)(.*)}/'), array('<?=$1?>', '<?=$1($3)?>'), "href:#{urlencode \$name}?id=#{\$id} Link");
Output for 4.3.0 - 7.2.0
href:<?=$name?>?id=<?=$id?> Linkhref:<?=urlencode $name?>?id=<?=$id?> Link