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/VLJVU
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 = 20
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 20
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 = 19
Branch analysis from position: 19
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: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/VLJVU
function name:  recursePrint
number of ops:  22
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, ->20
          3    > > FE_FETCH_R                                       ~5      $4, !2, ->20
          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, !3
         10        CONCAT                                           ~9      ~8, '.'
         11        SEND_VAL_EX                                              ~9
         12        DO_FCALL                                      0          
         13      > JMP                                                      ->19
   43    14    >   CONCAT                                           ~11     !1, !3
         15        CONCAT                                           ~12     ~11, '%3D'
         16        CONCAT                                           ~13     ~12, !2
         17        CONCAT                                           ~14     ~13, '%0A'
         18        ECHO                                                     ~14
   39    19    > > JMP                                                      ->3
         20    >   FE_FREE                                                  $4
   46    21      > RETURN                                                   null

End of function recurseprint

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.48 ms | 1390 KiB | 14 Q