3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 'languages' => array( 'php', 'mysql', 'inglip', ), 'rates' => array( 'incall' => array('1hr' => 10), 'outcall' => array('1hr' => 10), ), ); $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($array)); foreach($iterator as $key => $value) { echo "$key => $value\n"; }
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/ped4J
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $iterator, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     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
   15     8      > FE_RESET_R                                       $10     !1, ->17
          9    > > FE_FETCH_R                                       ~11     $10, !2, ->17
         10    >   ASSIGN                                                   !3, ~11
   16    11        ROPE_INIT                                     4  ~14     !3
         12        ROPE_ADD                                      1  ~14     ~14, '+%3D%3E+'
         13        ROPE_ADD                                      2  ~14     ~14, !2
         14        ROPE_END                                      3  ~13     ~14, '%0A'
         15        ECHO                                                     ~13
   15    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $10
   17    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.81 ms | 1393 KiB | 13 Q