3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'a'; if( strncmp( $key, '_', 1 ) === 0 && strcmp( $key, '_reload' ) !== 0 ) echo 1;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 14
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
filename:       /in/Ya3dW
function name:  (null)
number of ops:  17
compiled vars:  !0 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'a'
    4     1        INIT_FCALL                                               'strncmp'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '_'
          4        SEND_VAL                                                 1
          5        DO_ICALL                                         $2      
          6        IS_IDENTICAL                                     ~3      $2, 0
          7      > JMPZ_EX                                          ~3      ~3, ->14
          8    >   INIT_FCALL                                               'strcmp'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 '_reload'
         11        DO_ICALL                                         $4      
         12        IS_NOT_IDENTICAL                                 ~5      $4, 0
         13        BOOL                                             ~3      ~5
         14    > > JMPZ                                                     ~3, ->16
         15    >   ECHO                                                     1
         16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.03 ms | 1394 KiB | 17 Q