3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r = '<div class="form-group>'; $r .= '<label class="control-label" for="id_f-variants-99999-is_active">Is active</label>'; $r = substr($r, 0, strpos($r, ">")); $r .= '>'; $r .= '<label class="control-label" for="id_f-variants-99999-is_active">Is active</label>'; $r .= '<span class="unchecked">hoa</span>'; $r .= '<span class="checked">hoahoahoa</span>'; $r .= '</label>'; $r .= '</div>'; echo($r);
Output for 4.3.0 - 7.1.0
<div class="form-group><label class="control-label" for="id_f-variants-99999-is_active">Is active</label><span class="unchecked">hoa</span><span class="checked">hoahoahoa</span></label></div>