3v4l.org

run code in 500+ PHP versions simultaneously
<?php function data() { $a = "abc"; $b = "def"; $c = "ghi"; return get_defined_vars(); } extract(data()); var_dump($a, $b, $c);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Pb5ul
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'extract'
          1        INIT_FCALL                                                   'data'
          2        DO_FCALL                                          0  $3      
          3        SEND_VAL                                                     $3
          4        DO_ICALL                                                     
   12     5        INIT_FCALL                                                   'var_dump'
          6        SEND_VAR                                                     !0
          7        SEND_VAR                                                     !1
          8        SEND_VAR                                                     !2
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

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

End of function data

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
203.59 ms | 1717 KiB | 17 Q