3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function __construct() {}} class B {} class C extends A { // Imagine this with `extends A, B` 😉 public function __construct() { parent::__construct(); var_dump(parent::class); } } new C();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/feS7e
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $0      'C'
          1        DO_FCALL                                          0          
          2        FREE                                                         $0
          3      > RETURN                                                       1

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

End of function __construct

End of class A.

Class B: [no user functions]
Class C:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/feS7e
function name:  __construct
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                      
          1        DO_FCALL                                          0          
   11     2        INIT_FCALL                                                   'var_dump'
          3        SEND_VAL                                                     'A'
          4        DO_ICALL                                                     
   12     5      > RETURN                                                       null

End of function __construct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
207.29 ms | 3315 KiB | 14 Q