3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TDatabaseObject { public function __construct() { } } class File { use TDatabaseObject { TDatabaseObject::__construct as private databaseObjectConstruct; } public function __construct() { } } class Attachment extends File { } new Attachment(""); echo 'okay';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nbvs7
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'file'
   18     1        DECLARE_CLASS                                            'attachment', 'file'
   21     2        NEW                                              $0      'Attachment'
          3        SEND_VAL_EX                                              ''
          4        DO_FCALL                                      0          
          5        FREE                                                     $0
   23     6        ECHO                                                     'okay'
          7      > RETURN                                                   1

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

End of function __construct

End of class TDatabaseObject.

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

End of function __construct

End of class File.

Class Attachment: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.82 ms | 1393 KiB | 13 Q