3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.56 ms | 1448 KiB | 13 Q