3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 'foo'; $b = & $a; $c = 'moo'; $vars = get_defined_vars(); $vars['a'] = 'OMG'; $vars['c'] = 'Pie'; var_dump($a, $b, $c, debug_zval_dump($a), debug_zval_dump($b), debug_zval_dump($c));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VJTPv
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $vars
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'foo'
    4     1        ASSIGN_REF                                               !1, !0
    5     2        ASSIGN                                                   !2, 'moo'
    7     3        INIT_FCALL                                               'get_defined_vars'
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !3, $7
    8     6        ASSIGN_DIM                                               !3, 'a'
          7        OP_DATA                                                  'OMG'
    9     8        ASSIGN_DIM                                               !3, 'c'
          9        OP_DATA                                                  'Pie'
   11    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !0
         12        SEND_VAR                                                 !1
         13        SEND_VAR                                                 !2
         14        INIT_FCALL                                               'debug_zval_dump'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $11     
         17        SEND_VAR                                                 $11
         18        INIT_FCALL                                               'debug_zval_dump'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $12     
         21        SEND_VAR                                                 $12
         22        INIT_FCALL                                               'debug_zval_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $13     
         25        SEND_VAR                                                 $13
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.32 ms | 1395 KiB | 19 Q