3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [ 'a1' => true, 'b1' => 'abc', 'c1' => 'def' ], [ 'a2' => true, 'b2' => 'fgh', 'c2' => 'ijk', 'd2' => 'lmn', 'e2' => 'opq', ] ]; $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($arr)); foreach($iterator as $key => $value) { var_dump($key . ': ' . $value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/QX9iQ
function name:  (null)
number of ops:  19
compiled vars:  !0 = $arr, !1 = $iterator, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        NEW                                              $5      'RecursiveIteratorIterator'
          2        NEW                                              $6      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $6
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
   20     8      > FE_RESET_R                                       $10     !1, ->17
          9    > > FE_FETCH_R                                       ~11     $10, !2, ->17
         10    >   ASSIGN                                                   !3, ~11
   21    11        INIT_FCALL                                               'var_dump'
         12        CONCAT                                           ~13     !3, '%3A+'
         13        CONCAT                                           ~14     ~13, !2
         14        SEND_VAL                                                 ~14
         15        DO_ICALL                                                 
   20    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $10
   22    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.07 ms | 1395 KiB | 15 Q