3v4l.org

run code in 300+ PHP versions simultaneously
<?php function scope(){ /** @return never */ function neverReturns(){ die(); } unrelated(); neverReturns(); function unrelated():void{ echo "hello"; } } scope();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/THj5q
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'scope'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

Function scope:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/THj5q
function name:  scope
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_FUNCTION                                         'neverreturns'
    8     1        INIT_FCALL_BY_NAME                                       'unrelated'
          2        DO_FCALL                                      0          
    9     3        INIT_FCALL_BY_NAME                                       'neverReturns'
          4        DO_FCALL                                      0          
   10     5        DECLARE_FUNCTION                                         'unrelated'
   13     6      > RETURN                                                   null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/THj5q
function name:  neverReturns
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > EXIT                                                     
    7     1*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/THj5q
function name:  unrelated
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'hello'
   12     1      > RETURN                                                   null

End of Dynamic Function 1

End of function scope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
284.21 ms | 1011 KiB | 14 Q