3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { echo zend_thread_id(); throw new Exception('Coucou'); } catch (Exception $e) { echo zend_thread_id(); var_dump($e->getMessage()); return 'test'; } finally { echo zend_thread_id(); echo "I'm going there"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
2 jumps found. (Code = 162) Position 1 = 21, Position 2 = 18
Branch analysis from position: 21
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6oh1j
function name:  (null)
number of ops:  27
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'zend_thread_id'
          1        DO_FCALL                                      0  $2      
          2        ECHO                                                     $2
    5     3        NEW                                              $3      'Exception'
          4        SEND_VAL_EX                                              'Coucou'
          5        DO_FCALL                                      0          
          6      > THROW                                         0          $3
          7*       JMP                                                      ->19
    6     8  E > > CATCH                                       last         'Exception'
    7     9    >   INIT_FCALL_BY_NAME                                       'zend_thread_id'
         10        DO_FCALL                                      0  $5      
         11        ECHO                                                     $5
    8    12        INIT_FCALL                                               'var_dump'
         13        INIT_METHOD_CALL                                         !0, 'getMessage'
         14        DO_FCALL                                      0  $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
    9    17      > FAST_CALL                                                ->21
         18    > > RETURN                                                   'test'
   10    19*       FAST_CALL                                                ->21
         20*       JMP                                                      ->26
   11    21    >   INIT_FCALL_BY_NAME                                       'zend_thread_id'
         22        DO_FCALL                                      0  $8      
         23        ECHO                                                     $8
   12    24        ECHO                                                     'I%27m+going+there'
         25      > FAST_RET                                                 
   13    26*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.6 ms | 1387 KiB | 15 Q