3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "null"; $arr = get_defined_vars(); foreach($arr as $a) { echo in_array('str',$a); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/sFNVG
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $arr, !2 = $a
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                                         $4      
          3        ASSIGN                                                   !1, $4
    4     4      > FE_RESET_R                                       $6      !1, ->12
          5    > > FE_FETCH_R                                               $6, !2, ->12
    5     6    >   INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 'str'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $7      
         10        ECHO                                                     $7
    4    11      > JMP                                                      ->5
         12    >   FE_FREE                                                  $6
    6    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.73 ms | 1394 KiB | 17 Q