3v4l.org

run code in 300+ PHP versions simultaneously
<?php function tg($T) { $T['i'] = array_unique($T['i']); var_dump($T['i']); } $i = array( 'i' => array(1, 1, 3, 5) ); tg($i);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DELqJ
function name:  (null)
number of ops:  5
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'tg'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function tg:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DELqJ
function name:  tg
number of ops:  12
compiled vars:  !0 = $T
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'array_unique'
          2        FETCH_DIM_R                                      ~2      !0, 'i'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
          5        ASSIGN_DIM                                               !0, 'i'
          6        OP_DATA                                                  $3
    5     7        INIT_FCALL                                               'var_dump'
          8        FETCH_DIM_R                                      ~4      !0, 'i'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
    6    11      > RETURN                                                   null

End of function tg

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.52 ms | 1397 KiB | 18 Q