3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = 'barValue'; protected $baz = 'bazValue'; private $tab = 'tabValue'; } $f = new Foo(); echo $f->$tab; $data = (array) new Foo(); var_dump($data['tab']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/c93F7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $f, !1 = $tab, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   10     3        FETCH_OBJ_R                                      ~6      !0, !1
          4        ECHO                                                     ~6
   12     5        NEW                                              $7      'Foo'
          6        DO_FCALL                                      0          
          7        CAST                                          7  ~9      $7
          8        ASSIGN                                                   !2, ~9
   14     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~11     !2, 'tab'
         11        SEND_VAL                                                 ~11
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.84 ms | 1394 KiB | 15 Q