3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { foo(); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { new bar(); } catch (Throwable $e) { echo $e->getMessage(), "\n"; } try { class foo { use bar; } } catch (Throwable $e) { echo $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 3
Branch analysis from position: 3
2 jumps found. (Code = 107) Position 1 = 4, Position 2 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Found catch point at position: 12
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
Found catch point at position: 19
Branch analysis from position: 19
2 jumps found. (Code = 107) Position 1 = 20, Position 2 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/t25nN
function name:  (null)
number of ops:  25
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'foo'
          1        DO_FCALL                                      0          
          2      > JMP                                                      ->8
    5     3  E > > CATCH                                       last         'Throwable'
    6     4    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          5        DO_FCALL                                      0  $2      
          6        ECHO                                                     $2
          7        ECHO                                                     '%0A'
    9     8    >   NEW                                              $3      'bar'
          9        DO_FCALL                                      0          
         10        FREE                                                     $3
         11      > JMP                                                      ->17
   10    12  E > > CATCH                                       last         'Throwable'
   11    13    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         14        DO_FCALL                                      0  $5      
         15        ECHO                                                     $5
         16        ECHO                                                     '%0A'
   14    17    >   DECLARE_CLASS                                            'foo'
         18      > JMP                                                      ->24
   17    19  E > > CATCH                                       last         'Throwable'
   18    20    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         21        DO_FCALL                                      0  $6      
         22        ECHO                                                     $6
         23        ECHO                                                     '%0A'
   19    24    > > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.13 ms | 1399 KiB | 13 Q