3v4l.org

run code in 300+ PHP versions simultaneously
<?php $noBacon = array(0 => 0, 1=>"BACON"); if (in_array('bacon', $noBacon,TRUE)) { echo 'WTF PHP'; } else { echo $noBacon[1] ; }
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 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/h73tu
function name:  (null)
number of ops:  12
compiled vars:  !0 = $noBacon
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 'bacon'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $2      
          6      > JMPZ                                                     $2, ->9
    5     7    >   ECHO                                                     'WTF+PHP'
          8      > JMP                                                      ->11
    7     9    >   FETCH_DIM_R                                      ~3      !0, 1
         10        ECHO                                                     ~3
    8    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.2 ms | 1394 KiB | 15 Q