3v4l.org

run code in 300+ PHP versions simultaneously
<?php function weasel() { try { echo "try\n"; return false; } finally { echo "finally\n"; } } echo "start\n"; weasel(); echo "end\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S4RYf
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'start%0A'
   14     1        INIT_FCALL                                               'weasel'
          2        DO_FCALL                                      0          
   15     3        ECHO                                                     'end%0A'
          4      > RETURN                                                   1

Function weasel:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 162) Position 1 = 5, Position 2 = 2
Branch analysis from position: 5
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 2
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/S4RYf
function name:  weasel
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'try%0A'
    7     1      > FAST_CALL                                                ->5
          2    > > RETURN                                                   <false>
    8     3*       FAST_CALL                                                ->5
          4*       JMP                                                      ->7
    9     5    >   ECHO                                                     'finally%0A'
          6      > FAST_RET                                                 
   11     7*     > RETURN                                                   null

End of function weasel

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.9 ms | 1397 KiB | 14 Q