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('three'),"\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 = 11, Position 2 = 28
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 28
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 25
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 23
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 23
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 23
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
filename:       /in/WLeqF
function name:  (null)
number of ops:  30
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                                              'three'
          7        DO_FCALL                                      0  $10     
          8        ECHO                                                     $10
          9        ECHO                                                     '%0A'
    5    10      > FE_RESET_R                                       $11     !1, ->28
         11    > > FE_FETCH_R                                       ~12     $11, !2, ->28
         12    >   ASSIGN                                                   !3, ~12
    6    13        TYPE_CHECK                                  128          !2
         14      > JMPZ                                                     ~14, ->25
    7    15    > > FE_RESET_R                                       $15     !2, ->23
         16    > > FE_FETCH_R                                       ~16     $15, !4, ->23
         17    >   ASSIGN                                                   !5, ~16
    8    18        CONCAT                                           ~18     !5, '+%3D%3E+'
         19        CONCAT                                           ~19     ~18, !4
         20        ECHO                                                     ~19
         21        ECHO                                                     '%0A'
    7    22      > JMP                                                      ->16
         23    >   FE_FREE                                                  $15
         24      > JMP                                                      ->27
   13    25    >   ECHO                                                     !2
         26        ECHO                                                     '%0A'
    5    27    > > JMP                                                      ->11
         28    >   FE_FREE                                                  $11
   15    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.8 ms | 1386 KiB | 13 Q