3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; function foo() { $y = 2; $q = 3; $z = get_defined_vars(); var_export($z); } foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U6XO
function name:  (null)
number of ops:  4
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 1
   12     1        INIT_FCALL                                               'foo'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6U6XO
function name:  foo
number of ops:  9
compiled vars:  !0 = $y, !1 = $q, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 2
    7     1        ASSIGN                                                   !1, 3
    8     2        INIT_FCALL                                               'get_defined_vars'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !2, $5
    9     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
   10     8      > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.46 ms | 1397 KiB | 18 Q