3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** @return never */ function neverReturns(){ die(); } unrelated(); neverReturns(); if (true) { function unrelated():void{ echo "hello"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
filename:       /in/TZrHR
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL_BY_NAME                                       'unrelated'
          1        DO_FCALL                                      0          
    8     2        INIT_FCALL                                               'neverreturns'
          3        DO_FCALL                                      0          
    9     4      > JMPZ                                                     <true>, ->6
   10     5    >   DECLARE_FUNCTION                                         'unrelated'
   13     6    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TZrHR
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 0

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

End of function neverreturns

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.62 ms | 1010 KiB | 14 Q