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 ) ); foreach ($b as $c) { $row[]=$c; print_r($row); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/1YL4E
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $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                                         $5      
          6        SEND_VAR                                                 $5
          7        DO_ICALL                                         $6      
          8        ASSIGN                                                   !1, $6
    5     9      > FE_RESET_R                                       $8      !1, ->17
         10    > > FE_FETCH_R                                               $8, !2, ->17
    6    11    >   ASSIGN_DIM                                               !3
         12        OP_DATA                                                  !2
    7    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                                 
    5    16      > JMP                                                      ->10
         17    >   FE_FREE                                                  $8
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.76 ms | 1395 KiB | 19 Q