3v4l.org

run code in 300+ PHP versions simultaneously
<?php function weasel() { echo "start func\n"; try { return false; } finally { echo "finally\n"; } echo "end func\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/15tlu
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                     'start%0A'
   15     1        INIT_FCALL                                               'weasel'
          2        DO_FCALL                                      0          
   16     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/15tlu
function name:  weasel
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'start+func%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*       ECHO                                                     'end+func%0A'
   12     8*     > RETURN                                                   null

End of function weasel

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.56 ms | 1397 KiB | 14 Q