3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( 'out' => Array ( 'in1' => Array ( 'd1' => "data1", 'd2' => "data2", 'd3' => "data3", 'd4' => "data4", 'd5' => "data5", 'd6' => "data6", 'd7' => "data7", 'd8' => "data8" ), 'in2' => Array ( 'd9' => Array ( 'b1' => "data9", 'b2' => "data10" ), 'd10' => Array ( 'b1' => "data11", 'b2' => "data12" ) ) ) ); function recursePrint($array, $prefix = '') { foreach($array AS $key => $value) { if(is_array($value)) { recursePrint($value, $prefix . "." . $key); } else { echo $prefix . "." . $key . "=" . $value . "\n"; } } } recursePrint($array);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DWN6E
function name:  (null)
number of ops:  5
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   48     1        INIT_FCALL                                               'recurseprint'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
          4      > RETURN                                                   1

Function recurseprint:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 21
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 21
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/DWN6E
function name:  recursePrint
number of ops:  23
compiled vars:  !0 = $array, !1 = $prefix, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   38     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      ''
   39     2      > FE_RESET_R                                       $4      !0, ->21
          3    > > FE_FETCH_R                                       ~5      $4, !2, ->21
          4    >   ASSIGN                                                   !3, ~5
   40     5        TYPE_CHECK                                  128          !2
          6      > JMPZ                                                     ~7, ->14
   41     7    >   INIT_FCALL_BY_NAME                                       'recursePrint'
          8        SEND_VAR_EX                                              !2
          9        CONCAT                                           ~8      !1, '.'
         10        CONCAT                                           ~9      ~8, !3
         11        SEND_VAL_EX                                              ~9
         12        DO_FCALL                                      0          
         13      > JMP                                                      ->20
   43    14    >   CONCAT                                           ~11     !1, '.'
         15        CONCAT                                           ~12     ~11, !3
         16        CONCAT                                           ~13     ~12, '%3D'
         17        CONCAT                                           ~14     ~13, !2
         18        CONCAT                                           ~15     ~14, '%0A'
         19        ECHO                                                     ~15
   39    20    > > JMP                                                      ->3
         21    >   FE_FREE                                                  $4
   46    22      > RETURN                                                   null

End of function recurseprint

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.05 ms | 1399 KiB | 14 Q