3v4l.org

run code in 300+ PHP versions simultaneously
<?php (function () { $a = 'foo'; var_dump(array_key_exists('a', get_defined_vars())); var_dump(array_key_exists('b', get_defined_vars())); })();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XagEA
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                          ~0      [0]
    8     1        INIT_DYNAMIC_CALL                                        ~0
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XagEA
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'foo'
    6     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'get_defined_vars'
          3        DO_ICALL                                         $2      
          4        ARRAY_KEY_EXISTS                                 ~3      'a', $2
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8        INIT_FCALL                                               'get_defined_vars'
          9        DO_ICALL                                         $5      
         10        ARRAY_KEY_EXISTS                                 ~6      'b', $5
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
    8    13      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.78 ms | 998 KiB | 15 Q