3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.29 ms | 1394 KiB | 15 Q