3v4l.org

run code in 500+ PHP versions simultaneously
<?php function sub(&$data){} $data = array(); sub($data['nested']); echo serialize(array($data,$data));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i74nS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                       !0, <array>
    5     1        INIT_FCALL                                                   'sub'
          2        FETCH_DIM_W                                          $2      !0, 'nested'
          3        SEND_REF                                                     $2
          4        DO_FCALL                                          0          
    7     5        INIT_FCALL                                                   'serialize'
          6        INIT_ARRAY                                           ~4      !0
          7        ADD_ARRAY_ELEMENT                                    ~4      !0
          8        SEND_VAL                                                     ~4
          9        DO_ICALL                                             $5      
         10        ECHO                                                         $5
         11      > RETURN                                                       1

Function sub:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/i74nS
function name:  sub
number of ops:  2
compiled vars:  !0 = $data
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function sub

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.96 ms | 2126 KiB | 15 Q