3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "WordPress"; if (str_starts_with($str, "Word")) echo "Found!"; if (str_starts_with($str, "word")) echo "Not found!";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/kBcjZ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'WordPress'
    4     1        INIT_FCALL                                               'str_starts_with'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 'Word'
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->7
          6    >   ECHO                                                     'Found%21'
    6     7    >   INIT_FCALL                                               'str_starts_with'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'word'
         10        DO_ICALL                                         $3      
         11      > JMPZ                                                     $3, ->13
         12    >   ECHO                                                     'Not+found%21'
         13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.24 ms | 1450 KiB | 14 Q