3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1, 2, 3); if (!in_array(1, $arr)) { echo 1; } else if (in_array(1, $arr)) { echo 2; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/MFYlG
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 1
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5        BOOL_NOT                                         ~3      $2
          6      > JMPZ                                                     ~3, ->9
    6     7    >   ECHO                                                     1
          8      > JMP                                                      ->15
    7     9    >   INIT_FCALL                                               'in_array'
         10        SEND_VAL                                                 1
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13      > JMPZ                                                     $4, ->15
    8    14    >   ECHO                                                     2
    9    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.7 ms | 1399 KiB | 15 Q