3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = [ 'en' => '', 'fr' => 'fr' ]; $bar = [ 'de' => 'de' ]; $bar[] = $foo['en']; var_dump(array_count_values($foo)); $bar[] = &$foo['fr']; var_dump(array_count_values($foo));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mV25H
function name:  (null)
number of ops:  22
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    7     1        ASSIGN                                                   !1, <array>
   11     2        FETCH_DIM_R                                      ~5      !0, 'en'
          3        ASSIGN_DIM                                               !1
          4        OP_DATA                                                  ~5
   12     5        INIT_FCALL                                               'var_dump'
          6        INIT_FCALL                                               'array_count_values'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SEND_VAR                                                 $6
         10        DO_ICALL                                                 
   14    11        FETCH_DIM_W                                      $9      !0, 'fr'
         12        MAKE_REF                                         $10     $9
         13        FETCH_DIM_W                                      $8      !1
         14        ASSIGN_REF                                               $8, $10
   15    15        INIT_FCALL                                               'var_dump'
         16        INIT_FCALL                                               'array_count_values'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.26 ms | 1395 KiB | 17 Q