3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [ 'abc', ['oele' => 'boele'], ['boele' => 'oele'], ['oele' => 'boele'], ]; print_r($list); foreach ($list as $item) { var_dump(array_search($item, $list)); } print_r(array_unique($list));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/kBKL8
function name:  (null)
number of ops:  22
compiled vars:  !0 = $list, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   12     4      > FE_RESET_R                                       $4      !0, ->14
          5    > > FE_FETCH_R                                               $4, !1, ->14
   13     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_search'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
   12    13      > JMP                                                      ->5
         14    >   FE_FREE                                                  $4
   16    15        INIT_FCALL                                               'print_r'
         16        INIT_FCALL                                               'array_unique'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $7      
         19        SEND_VAR                                                 $7
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.34 ms | 1399 KiB | 21 Q