3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { $b = 123; $arr = get_defined_vars(); print_r($arr); } a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WJbee
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.21 ms | 1002 KiB | 16 Q