3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.4 ms | 1395 KiB | 15 Q