3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.22 ms | 1395 KiB | 17 Q