3v4l.org

run code in 300+ PHP versions simultaneously
<?php $part = NULL; $_1 = "abc"; if ( $part !== "" && 0 === strpos($_1, $part)) { echo "koko"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 12
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
Branch analysis from position: 10
filename:       /in/nUbvo
function name:  (null)
number of ops:  13
compiled vars:  !0 = $part, !1 = $_1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, null
    3     1        ASSIGN                                                   !1, 'abc'
    4     2        IS_NOT_IDENTICAL                                 ~4      !0, ''
          3      > JMPZ_EX                                          ~4      ~4, ->10
          4    >   INIT_FCALL                                               'strpos'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        IS_IDENTICAL                                     ~6      $5, 0
          9        BOOL                                             ~4      ~6
         10    > > JMPZ                                                     ~4, ->12
    5    11    >   ECHO                                                     'koko'
    6    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.49 ms | 1385 KiB | 15 Q