3v4l.org

run code in 500+ PHP versions simultaneously
<?php $d=array(); $d['y'][0]['year'] = 2000; $d['y'][1]['year'] = 2001; $d['y'][2]['year'] = 2002; $d['y'][3]['year'] = 2003; $d['y'][4]['year'] = 2004; $d['y'][5]['year'] = 2005; arsort($d['y']); function showData($value,$key){ echo "$value\n"; } array_walk_recursive( $d, 'showData');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kVamA
function name:  (null)
number of ops:  34
compiled vars:  !0 = $d
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
    4     1        FETCH_DIM_W                                          $2      !0, 'y'
          2        FETCH_DIM_W                                          $3      $2, 0
          3        ASSIGN_DIM                                                   $3, 'year'
          4        OP_DATA                                                      2000
    5     5        FETCH_DIM_W                                          $5      !0, 'y'
          6        FETCH_DIM_W                                          $6      $5, 1
          7        ASSIGN_DIM                                                   $6, 'year'
          8        OP_DATA                                                      2001
    6     9        FETCH_DIM_W                                          $8      !0, 'y'
         10        FETCH_DIM_W                                          $9      $8, 2
         11        ASSIGN_DIM                                                   $9, 'year'
         12        OP_DATA                                                      2002
    7    13        FETCH_DIM_W                                          $11     !0, 'y'
         14        FETCH_DIM_W                                          $12     $11, 3
         15        ASSIGN_DIM                                                   $12, 'year'
         16        OP_DATA                                                      2003
    8    17        FETCH_DIM_W                                          $14     !0, 'y'
         18        FETCH_DIM_W                                          $15     $14, 4
         19        ASSIGN_DIM                                                   $15, 'year'
         20        OP_DATA                                                      2004
    9    21        FETCH_DIM_W                                          $17     !0, 'y'
         22        FETCH_DIM_W                                          $18     $17, 5
         23        ASSIGN_DIM                                                   $18, 'year'
         24        OP_DATA                                                      2005
   11    25        INIT_FCALL                                                   'arsort'
         26        FETCH_DIM_W                                          $20     !0, 'y'
         27        SEND_REF                                                     $20
         28        DO_ICALL                                                     
   16    29        INIT_FCALL                                                   'array_walk_recursive'
         30        SEND_REF                                                     !0
         31        SEND_VAL                                                     'showData'
         32        DO_ICALL                                                     
         33      > RETURN                                                       1

Function showdata:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kVamA
function name:  showData
number of ops:  6
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
   14     2        NOP                                                          
          3        FAST_CONCAT                                          ~2      !0, '%0A'
          4        ECHO                                                         ~2
   15     5      > RETURN                                                       null

End of function showdata

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.49 ms | 2547 KiB | 15 Q