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) { } } echo (new MyClass)->asdf;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HtXn1
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $0      'MyClass'
          1        DO_FCALL                                      0          
          2        FETCH_OBJ_R                                      ~2      $0, 'asdf'
          3        ECHO                                                     ~2
          4      > RETURN                                                   1

Class MyClass:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HtXn1
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/HtXn1
function name:  __set
number of ops:  3
compiled vars:  !0 = $property, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   12     2      > RETURN                                                   null

End of function __set

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.83 ms | 1394 KiB | 13 Q