3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array('mela'=>'pera','mela'=>'pera','arancia'=>'mela'); $b= array_diff_key( $a , array_unique( $a ) ); $i=0; print_r($b); print_r($b[1]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Va02L
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'array_diff_key'
          2        SEND_VAR                                                 !0
          3        INIT_FCALL                                               'array_unique'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
    5     9        ASSIGN                                                   !2, 0
    6    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
    7    13        INIT_FCALL                                               'print_r'
         14        FETCH_DIM_R                                      ~9      !1, 1
         15        SEND_VAL                                                 ~9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.34 ms | 1394 KiB | 19 Q