3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { /** * My magic test class * * @return \DateTime */ function getdate() { return 'what_ever'; } \getdate(); // ctrl + click on getdate, should go to date.php stubs. Hover is also invalid. This looks like a problem with selection engine } namespace B { print_r(getdate()); // shouldn't work as \DateTime. \getdate() fallback ;; // fix CA ;) }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GClOI
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'getdate'
          1        DO_ICALL                                                 
   17     2        INIT_NS_FCALL_BY_NAME                                    'B%5Cprint_r'
          3        INIT_NS_FCALL_BY_NAME                                    'B%5Cgetdate'
          4        DO_FCALL                                      0  $1      
          5        SEND_VAR_NO_REF_EX                                       $1
          6        DO_FCALL                                      0          
   20     7      > RETURN                                                   1

Function a%5Cgetdate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GClOI
function name:  A\getdate
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   'what_ever'
   10     1*     > RETURN                                                   null

End of function a%5Cgetdate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.84 ms | 1394 KiB | 17 Q