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["\0*\0$baz"]; foreach($arr as $i=>$ar){ echo $i."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/HcITl
function name:  (null)
number of ops:  16
compiled vars:  !0 = $arr, !1 = $baz, !2 = $ar, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $4      'Foo'
          1        DO_FCALL                                      0          
          2        CAST                                          7  ~6      $4
          3        ASSIGN                                                   !0, ~6
   10     4        NOP                                                      
          5        FAST_CONCAT                                      ~8      '%00%2A%00', !1
          6        FETCH_DIM_R                                      ~9      !0, ~8
          7        ECHO                                                     ~9
   11     8      > FE_RESET_R                                       $10     !0, ->14
          9    > > FE_FETCH_R                                       ~11     $10, !2, ->14
         10    >   ASSIGN                                                   !3, ~11
   12    11        CONCAT                                           ~13     !3, '%0A'
         12        ECHO                                                     ~13
   11    13      > JMP                                                      ->9
         14    >   FE_FREE                                                  $10
   13    15      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.72 ms | 1393 KiB | 13 Q