3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function icon ($name) { return sprintf('<svg class="svg-icon"><use xlink:href="/assets/svg/icons.svg#svg-%s"></use></svg>', $name); } echo icon('lol');
Output for 4.3.0 - 7.2.0
<svg class="svg-icon"><use xlink:href="/assets/svg/icons.svg#svg-lol"></use></svg>