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 .= '>'; echo($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pqpXk
function name:  (null)
number of ops:  15
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cdiv+class%3D%22form-group%22%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'
    7    13        ECHO                                                     !0
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.07 ms | 1394 KiB | 17 Q