3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { private $v = 5; function __construct() { unset($this->v); } function __get($k) { print __METHOD__; } function getValue() { return $this->v; } } $c = new C(); $c->getValue();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D87Oc
function name:  (null)
number of ops:  6
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   17     3        INIT_METHOD_CALL                                         !0, 'getValue'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class C:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D87Oc
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   UNSET_OBJ                                                'v'
    7     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/D87Oc
function name:  __get
number of ops:  3
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        ECHO                                                     'C%3A%3A__get'
   10     2      > RETURN                                                   null

End of function __get

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

End of function getvalue

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.64 ms | 1394 KiB | 13 Q