3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { var $a = 5; public $b = [44,55]; /*public function __set($name, $value) { throw new Exception("Cannot add new property \$$name to instance of " . __CLASS__); }*/ } $a=new A; echo $a->a; $a->a = 9; echo $a->a; $a->b = 88; echo $a->b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S4DXr
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   13     3        FETCH_OBJ_R                                      ~4      !0, 'a'
          4        ECHO                                                     ~4
   14     5        ASSIGN_OBJ                                               !0, 'a'
          6        OP_DATA                                                  9
   15     7        FETCH_OBJ_R                                      ~6      !0, 'a'
          8        ECHO                                                     ~6
   17     9        ASSIGN_OBJ                                               !0, 'b'
         10        OP_DATA                                                  88
   18    11        FETCH_OBJ_R                                      ~8      !0, 'b'
         12        ECHO                                                     ~8
         13      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.76 ms | 1393 KiB | 13 Q