3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * test */ class Test { private $age; public function __construct() { $this->age = 12; //echo 'construct'; } private function __set($name,$value) { echo 'unknown property?' . $name . '=' . $value . '<hr>'; } public function __get($name) { echo $name . '<hr>'; } public function say(){ return $this->age; } } error_reporting(E_ALL); $a = new Test(); $a->name = 'Eddy'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZpTD
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 32767
          2        DO_ICALL                                                 
   30     3        NEW                                              $2      'Test'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   31     6        ASSIGN_OBJ                                               !0, 'name'
          7        OP_DATA                                                  'Eddy'
   32     8      > RETURN                                                   1

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZpTD
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN_OBJ                                               'age'
          1        OP_DATA                                                  12
   13     2      > RETURN                                                   null

End of function __construct

Function __set:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZpTD
function name:  __set
number of ops:  8
compiled vars:  !0 = $name, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   17     2        CONCAT                                           ~2      'unknown+property%3F', !0
          3        CONCAT                                           ~3      ~2, '%3D'
          4        CONCAT                                           ~4      ~3, !1
          5        CONCAT                                           ~5      ~4, '%3Chr%3E'
          6        ECHO                                                     ~5
   18     7      > RETURN                                                   null

End of function __set

Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZpTD
function name:  __get
number of ops:  4
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   21     1        CONCAT                                           ~1      !0, '%3Chr%3E'
          2        ECHO                                                     ~1
   22     3      > RETURN                                                   null

End of function __get

Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gZpTD
function name:  say
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   FETCH_OBJ_R                                      ~0      'age'
          1      > RETURN                                                   ~0
   26     2*     > RETURN                                                   null

End of function say

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.15 ms | 1400 KiB | 15 Q