3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'USA' => [ 'Alabama' => [ 'Montgomery', 'Birmingham' ], 'Arizona' => [ 'Phoenix', 'Mesa', 'Gilbert' ] ], 'Germany' => [ 'West Germany' => [ 'Bonn', 'Cologne' ] ] ]; $arrayobject = new ArrayObject($array); $iterator = $arrayobject->getIterator(); while($iterator->valid()) { echo $iterator->key() . ' => ' . $iterator->current() . "\n"; $iterator->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 9
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 9
Branch analysis from position: 22
Branch analysis from position: 9
filename:       /in/bEcOr
function name:  (null)
number of ops:  23
compiled vars:  !0 = $array, !1 = $arrayobject, !2 = $iterator
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   28     1        NEW                                              $4      'ArrayObject'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
   29     5        INIT_METHOD_CALL                                         !1, 'getIterator'
          6        DO_FCALL                                      0  $7      
          7        ASSIGN                                                   !2, $7
   31     8      > JMP                                                      ->19
   32     9    >   INIT_METHOD_CALL                                         !2, 'key'
         10        DO_FCALL                                      0  $9      
         11        CONCAT                                           ~10     $9, '+%3D%3E+'
         12        INIT_METHOD_CALL                                         !2, 'current'
         13        DO_FCALL                                      0  $11     
         14        CONCAT                                           ~12     ~10, $11
         15        CONCAT                                           ~13     ~12, '%0A'
         16        ECHO                                                     ~13
   34    17        INIT_METHOD_CALL                                         !2, 'next'
         18        DO_FCALL                                      0          
   31    19    >   INIT_METHOD_CALL                                         !2, 'valid'
         20        DO_FCALL                                      0  $15     
         21      > JMPNZ                                                    $15, ->9
   35    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
219.36 ms | 1394 KiB | 13 Q