3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MyClass { private $firstField; private $secondField; public function __get($property) { return 'aaaaa'; } public function __set($property, $value) { return 'algo'; } } $a=new MyClass; echo $a->asdf=8;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oGmdX
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $1      'MyClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   16     3        ASSIGN_OBJ                                       ~4      !0, 'asdf'
          4        OP_DATA                                                  8
          5        ECHO                                                     ~4
          6      > RETURN                                                   1

Class MyClass:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oGmdX
function name:  __get
number of ops:  3
compiled vars:  !0 = $property
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1      > RETURN                                                   'aaaaa'
    8     2*     > RETURN                                                   null

End of function __get

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oGmdX
function name:  __set
number of ops:  4
compiled vars:  !0 = $property, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   11     2      > RETURN                                                   'algo'
   12     3*     > RETURN                                                   null

End of function __set

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.26 ms | 1394 KiB | 13 Q