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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1395 KiB | 19 Q