3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hoho = new stdClass(); $hoho->foo = 'bar'; $hoho->bar = 'baz'; foreach ($hoho as $test) { var_dump($test); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/qhh7k
function name:  (null)
number of ops:  15
compiled vars:  !0 = $hoho, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
    5     5        ASSIGN_OBJ                                               !0, 'bar'
          6        OP_DATA                                                  'baz'
    7     7      > FE_RESET_R                                       $7      !0, ->13
          8    > > FE_FETCH_R                                               $7, !1, ->13
    8     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    7    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $7
    9    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.88 ms | 1394 KiB | 15 Q