3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("test",array("one"=>1,"two"=>2,"three"=>3), array("one"=>1,"two"=>2,"three"=>3)); $o = new ArrayObject($arr); echo $o->offsetGet(2)["two"],"\n"; foreach ($o as $key=>$val){ if (is_array($val)) { foreach($val as $k => $v) { echo $k . ' => ' . $v,"\n"; } } else { echo $val,"\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 29
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 29
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 26
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 24
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
filename:       /in/Y9MFE
function name:  (null)
number of ops:  31
compiled vars:  !0 = $arr, !1 = $o, !2 = $val, !3 = $key, !4 = $v, !5 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        NEW                                              $7      'ArrayObject'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $7
    4     5        INIT_METHOD_CALL                                         !1, 'offsetGet'
          6        SEND_VAL_EX                                              2
          7        DO_FCALL                                      0  $10     
          8        FETCH_DIM_R                                      ~11     $10, 'two'
          9        ECHO                                                     ~11
         10        ECHO                                                     '%0A'
    5    11      > FE_RESET_R                                       $12     !1, ->29
         12    > > FE_FETCH_R                                       ~13     $12, !2, ->29
         13    >   ASSIGN                                                   !3, ~13
    6    14        TYPE_CHECK                                  128          !2
         15      > JMPZ                                                     ~15, ->26
    7    16    > > FE_RESET_R                                       $16     !2, ->24
         17    > > FE_FETCH_R                                       ~17     $16, !4, ->24
         18    >   ASSIGN                                                   !5, ~17
    8    19        CONCAT                                           ~19     !5, '+%3D%3E+'
         20        CONCAT                                           ~20     ~19, !4
         21        ECHO                                                     ~20
         22        ECHO                                                     '%0A'
    7    23      > JMP                                                      ->17
         24    >   FE_FREE                                                  $16
         25      > JMP                                                      ->28
   13    26    >   ECHO                                                     !2
         27        ECHO                                                     '%0A'
    5    28    > > JMP                                                      ->12
         29    >   FE_FREE                                                  $12
   15    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.33 ms | 1386 KiB | 13 Q