3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = '<label for="id_title" class="control-label">Title</label>'; $label = strstr('<label for="id_title" class="control-label">Title</label>', '>'); rtrim($o, $label); #echo($label); echo($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sOCeg
function name:  (null)
number of ops:  12
compiled vars:  !0 = $o, !1 = $label
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Clabel+for%3D%22id_title%22+class%3D%22control-label%22%3ETitle%3C%2Flabel%3E'
    3     1        INIT_FCALL                                               'strstr'
          2        SEND_VAL                                                 '%3Clabel+for%3D%22id_title%22+class%3D%22control-label%22%3ETitle%3C%2Flabel%3E'
          3        SEND_VAL                                                 '%3E'
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    4     6        INIT_FCALL                                               'rtrim'
          7        SEND_VAR                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10        ECHO                                                     !0
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.6 ms | 1394 KiB | 17 Q