3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.37 ms | 1386 KiB | 17 Q