3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Person { private $name; private function __construct($name) { $this->name = $name; } public function register($name) { $this->__construct($name); } } $person = (new Person)->register($name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HhLn1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $person, !1 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $2      'Person'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $2, 'register'
          3        SEND_VAR_EX                                              !1
          4        DO_FCALL                                      0  $4      
          5        ASSIGN                                                   !0, $4
          6      > RETURN                                                   1

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

End of function __construct

Function register:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HhLn1
function name:  register
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
   11     1        INIT_METHOD_CALL                                         '__construct'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   12     4      > RETURN                                                   null

End of function register

End of class Person.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.44 ms | 1394 KiB | 13 Q