3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.29 ms | 999 KiB | 14 Q