3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassParent { public function __construct() { echo 'Im parent'; } } class ClassChild extends ClassParent { protected $parent = null; public function __construct() { echo 'Im child'; $this->parent = new self(); } } new ClassChild();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kDE7
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $0      'ClassChild'
          1        DO_FCALL                                      0          
          2        FREE                                                     $0
          3      > RETURN                                                   1

Class ClassParent:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kDE7
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'Im+parent'
    6     1      > RETURN                                                   null

End of function __construct

End of class ClassParent.

Class ClassChild:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7kDE7
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'Im+child'
   16     1        NEW                          self                $1      
          2        DO_FCALL                                      0          
          3        ASSIGN_OBJ                                               'parent'
          4        OP_DATA                                                  $1
   17     5      > RETURN                                                   null

End of function __construct

End of class ClassChild.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.21 ms | 1393 KiB | 13 Q