3v4l.org

run code in 300+ PHP versions simultaneously
<?php $original = [ ['name' => 'Barfoo'], ['name' => 'Foobar'], ['name' => 'Foobar'], ['name' => 'Foo'], ]; $keyMap = []; var_dump(array_count_values($original));die; foreach ($original as $key => $item) { var_dump(array_search()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/JWtK8
function name:  (null)
number of ops:  20
compiled vars:  !0 = $original, !1 = $keyMap, !2 = $item, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   12     2        INIT_FCALL                                               'var_dump'
          3        INIT_FCALL                                               'array_count_values'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        DO_ICALL                                                 
          8      > EXIT                                                     
   14     9*       FE_RESET_R                                       $8      !0, ->18
         10*       FE_FETCH_R                                       ~9      $8, !2, ->18
         11*       ASSIGN                                                   !3, ~9
   15    12*       INIT_FCALL                                               'var_dump'
         13*       INIT_FCALL                                               'array_search'
         14*       DO_ICALL                                         $11     
         15*       SEND_VAR                                                 $11
         16*       DO_ICALL                                                 
   14    17*       JMP                                                      ->10
         18*       FE_FREE                                                  $8
   16    19*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.83 ms | 1399 KiB | 19 Q