3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $arr = ((array)new Foo()); echo $arr['*baz']; foreach($arr as $i=>$ar){ echo $i."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/BbXKk
function name:  (null)
number of ops:  14
compiled vars:  !0 = $arr, !1 = $ar, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        CAST                                          7  ~5      $3
          3        ASSIGN                                                   !0, ~5
   10     4        FETCH_DIM_R                                      ~7      !0, '%2Abaz'
          5        ECHO                                                     ~7
   11     6      > FE_RESET_R                                       $8      !0, ->12
          7    > > FE_FETCH_R                                       ~9      $8, !1, ->12
          8    >   ASSIGN                                                   !2, ~9
   12     9        CONCAT                                           ~11     !2, '%0A'
         10        ECHO                                                     ~11
   11    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $8
   13    13      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.96 ms | 1393 KiB | 13 Q