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, true)); } print_r(array_unique($list));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/u466R
function name:  (null)
number of ops:  23
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, ->15
          5    > > FE_FETCH_R                                               $4, !1, ->15
   13     6    >   INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'array_search'
          8        SEND_VAR                                                 !1
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                                 
   12    14      > JMP                                                      ->5
         15    >   FE_FREE                                                  $4
   16    16        INIT_FCALL                                               'print_r'
         17        INIT_FCALL                                               'array_unique'
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $7      
         20        SEND_VAR                                                 $7
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.94 ms | 1395 KiB | 21 Q