3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ary = array(); $ary['foo'] = 'bar'; function my_func(&$ary) { $ary['bar'] = 'foo'; } my_func($ary); var_dump($ary);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pIFRl
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ary
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0, 'foo'
          2        OP_DATA                                                  'bar'
   12     3        INIT_FCALL                                               'my_func'
          4        SEND_REF                                                 !0
          5        DO_FCALL                                      0          
   14     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Function my_func:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pIFRl
function name:  my_func
number of ops:  4
compiled vars:  !0 = $ary
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ASSIGN_DIM                                               !0, 'bar'
          2        OP_DATA                                                  'foo'
   10     3      > RETURN                                                   null

End of function my_func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.64 ms | 1397 KiB | 16 Q