3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $a = 'a'; protected $b = 'b'; private $c = 'c'; } $o = new A; foreach ($o as $key => &$value) { $value = '!'; } var_dump($o);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 126) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/AVsaN
function name:  (null)
number of ops:  13
compiled vars:  !0 = $o, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3      > FE_RESET_RW                                      $6      !0, ->8
          4    > > FE_FETCH_RW                                      ~7      $6, !1, ->8
          5    >   ASSIGN                                                   !2, ~7
    9     6        ASSIGN                                                   !1, '%21'
    8     7      > JMP                                                      ->4
          8    >   FE_FREE                                                  $6
   11     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.85 ms | 1394 KiB | 15 Q