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; print_r($row[$i]); $i++; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 20
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/u1mX2
function name:  (null)
number of ops:  22
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, ->20
         11    > > FE_FETCH_R                                               $10, !3, ->20
    7    12    >   ASSIGN_DIM                                               !4, !2
         13        OP_DATA                                                  !3
    8    14        INIT_FCALL                                               'print_r'
         15        FETCH_DIM_R                                      ~12     !4, !2
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
    9    18        PRE_INC                                                  !2
    6    19      > JMP                                                      ->11
         20    >   FE_FREE                                                  $10
   10    21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
195.95 ms | 1395 KiB | 19 Q