3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a= array( 'mela' => 'pera', 'pippo'=> 'pera', 'carlo'=>'banana', 'saverio'=>'pera', 'antonio'=>'banana', ); $b= array_diff_key( $a , array_unique( $a ) ); $i=0; print_r($b); foreach($b as $c => $key){ print_r($c); print_r ('<br/>'); print_r($key); print_r ('<br/>'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 29
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 29
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/fd2IV
function name:  (null)
number of ops:  31
compiled vars:  !0 = $a, !1 = $b, !2 = $i, !3 = $key, !4 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   16     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
   17     9        ASSIGN                                                   !2, 0
   18    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                                 
   20    13      > FE_RESET_R                                       $11     !1, ->29
         14    > > FE_FETCH_R                                       ~12     $11, !3, ->29
         15    >   ASSIGN                                                   !4, ~12
   21    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !4
         18        DO_ICALL                                                 
   22    19        INIT_FCALL                                               'print_r'
         20        SEND_VAL                                                 '%3Cbr%2F%3E'
         21        DO_ICALL                                                 
   23    22        INIT_FCALL                                               'print_r'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
   24    25        INIT_FCALL                                               'print_r'
         26        SEND_VAL                                                 '%3Cbr%2F%3E'
         27        DO_ICALL                                                 
   20    28      > JMP                                                      ->14
         29    >   FE_FREE                                                  $11
   26    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.16 ms | 1396 KiB | 19 Q