3v4l.org

run code in 300+ PHP versions simultaneously
<?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 .= '<input id="id_f-variants-99999-is_active" class="form-control checkbox" type="checkbox" name="f-variants-99999-is_active"></input>'; $r .= '<span class="unchecked">hoa</span>'; $r .= '<span class="checked">hoahoahoa</span>'; $r .= '</label>'; $r .= '</div>'; echo($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gWKTA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22form-group%3E'
    3     1        ASSIGN_OP                                     8          !0, '%3Clabel+class%3D%22control-label%22+for%3D%22id_f-variants-99999-is_active%22%3EIs+active%3C%2Flabel%3E'
    4     2        INIT_FCALL                                               'substr'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 0
          5        INIT_FCALL                                               'strpos'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 '%3E'
          8        DO_ICALL                                         $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !0, $4
    5    12        ASSIGN_OP                                     8          !0, '%3E'
    6    13        ASSIGN_OP                                     8          !0, '%3Cinput+id%3D%22id_f-variants-99999-is_active%22+class%3D%22form-control+checkbox%22+type%3D%22checkbox%22+name%3D%22f-variants-99999-is_active%22%3E%3C%2Finput%3E'
    7    14        ASSIGN_OP                                     8          !0, '%3Cspan+class%3D%22unchecked%22%3Ehoa%3C%2Fspan%3E'
    8    15        ASSIGN_OP                                     8          !0, '%3Cspan+class%3D%22checked%22%3Ehoahoahoa%3C%2Fspan%3E'
    9    16        ASSIGN_OP                                     8          !0, '%3C%2Flabel%3E'
   10    17        ASSIGN_OP                                     8          !0, '%3C%2Fdiv%3E'
   11    18        ECHO                                                     !0
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1386 KiB | 17 Q