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>', '>'); $o = substr($o, 0, strpos($o, ">")); #echo($label); echo($o);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QkaPB
function name:  (null)
number of ops:  13
compiled vars:  !0 = $o
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'
    4     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 '%3E'
          7        DO_ICALL                                         $2      
          8        SEND_VAR                                                 $2
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    6    11        ECHO                                                     !0
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1398 KiB | 18 Q