3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filter = "cmt test test test"; if (substr($filter, 0,4) == 'cmt ') { echo "hi"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/HYZvW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'cmt+test+test+test'
    3     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 4
          5        DO_ICALL                                         $2      
          6        IS_EQUAL                                                 $2, 'cmt+'
          7      > JMPZ                                                     ~3, ->9
          8    >   ECHO                                                     'hi'
          9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.34 ms | 1394 KiB | 15 Q