3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.43 ms | 1385 KiB | 17 Q