3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); trait T { public function x(): void { \PHPStan\dumpType(parent::class); } } class A {} class B extends A { use T; } new class() extends B { use T; };
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TeeAc
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'b', 'a'
   18     1        DECLARE_ANON_CLASS                               <unknown> 'b'
          2        NEW                                              $1      $0
          3        DO_FCALL                                      0          
          4        FREE                                                     $1
   21     5      > RETURN                                                   1

Class T:
Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TeeAc
function name:  x
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                       'PHPStan%5CdumpType'
          1        FETCH_CLASS_NAME                                 ~0      
          2        SEND_VAL_EX                                              ~0
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function x

End of class T.

Class A: [no user functions]
Class B: [no user functions]
Class B@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
251.29 ms | 1001 KiB | 13 Q