3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { try { throw new Exception('waa'); return 'a'; } finally { echo 'b'; } } echo a();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rYKvS
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'a'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/rYKvS
function name:  a
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'waa'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
    8     4*       FAST_CALL                                                ->8
          5*       RETURN                                                   'a'
   11     6*       FAST_CALL                                                ->8
          7*       JMP                                                      ->10
   12     8*       ECHO                                                     'b'
          9*       FAST_RET                                                 
   15    10*     > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.85 ms | 1397 KiB | 14 Q