3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array('mela','mela' ,'pera','arancia','mela','mela','arancia'); $b= array_diff_key( $a , array_unique( $a ) ); $i=0; foreach ($b as $c) { $row[$i]=$c[$i]; print_r($row[$i]); $i++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 21
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 21
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/54Yf2
function name:  (null)
number of ops:  23
compiled vars:  !0 = $a, !1 = $b, !2 = $i, !3 = $c, !4 = $row
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                                         $6      
          6        SEND_VAR                                                 $6
          7        DO_ICALL                                         $7      
          8        ASSIGN                                                   !1, $7
    5     9        ASSIGN                                                   !2, 0
    6    10      > FE_RESET_R                                       $10     !1, ->21
         11    > > FE_FETCH_R                                               $10, !3, ->21
    7    12    >   FETCH_DIM_R                                      ~12     !3, !2
         13        ASSIGN_DIM                                               !4, !2
         14        OP_DATA                                                  ~12
    8    15        INIT_FCALL                                               'print_r'
         16        FETCH_DIM_R                                      ~13     !4, !2
         17        SEND_VAL                                                 ~13
         18        DO_ICALL                                                 
    9    19        PRE_INC                                                  !2
    6    20      > JMP                                                      ->11
         21    >   FE_FREE                                                  $10
   10    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.81 ms | 1395 KiB | 19 Q