3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace App; function z(): int { return 1; } function ok(): int { return namespace\z(); } function bad(): void { namespace\nope(); // ^^^^^^^^^^^^^^^^ UndefinedFunction: Function namespace\nope() is not defined // ^^^^^^^^^^^^^^^^ UndefinedFunction: Function App\nope() is not defined } bad();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWFHs
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   INIT_NS_FCALL_BY_NAME                                        'App%5Cbad'
          1        DO_FCALL                                          0          
          2      > RETURN                                                       1

Function app%5Cz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWFHs
function name:  App\z
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       1
          1*       VERIFY_RETURN_TYPE                                           
          2*     > RETURN                                                       null

End of function app%5Cz

Function app%5Cok:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWFHs
function name:  App\ok
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'app%5Cz'
          1        DO_FCALL                                          0  $0      
          2        VERIFY_RETURN_TYPE                                           $0
          3      > RETURN                                                       $0
          4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of function app%5Cok

Function app%5Cbad:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWFHs
function name:  App\bad
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL_BY_NAME                                           'App%5Cnope'
          1        DO_FCALL                                          0          
   13     2      > RETURN                                                       null

End of function app%5Cbad

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.96 ms | 479 KiB | 9 Q