3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $publicProperty = array(); } class Bar { public function __construct() { unset($this->publicProperty); } public function __get($name) { return self::$name; } } $bar = new Bar(); $bar->publicProperty['example'] = 'Hello World!'; var_dump($bar->publicProperty);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iu9L4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'Bar'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        FETCH_OBJ_W                                      $4      !0, 'publicProperty'
          4        ASSIGN_DIM                                               $4, 'example'
          5        OP_DATA                                                  'Hello+World%21'
   25     6        INIT_FCALL                                               'var_dump'
          7        FETCH_OBJ_R                                      ~6      !0, 'publicProperty'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class Foo: [no user functions]
Class Bar:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iu9L4
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   UNSET_OBJ                                                'publicProperty'
   13     1      > RETURN                                                   null

End of function __construct

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Iu9L4
function name:  __get
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
   17     1        FETCH_STATIC_PROP_R          unknown             ~1      'name'
          2      > RETURN                                                   ~1
   18     3*     > RETURN                                                   null

End of function __get

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.85 ms | 1387 KiB | 15 Q