3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $opts['label'] = 'label'; $role = ''; $href=''; $class=''; $label = empty( $opts['label'] ) ? $name : $opts['label']; $label = 'presentation' === $role ? '' : $label; echo sprintf( '<svg role="%s" class="%s"%s><use xlink:href="%s"/></svg>', $role, $class, $label, $href );
based on pZddS
Output for 5.5.0 - 7.2.6
<svg role="" class=""label><use xlink:href=""/></svg>