3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new Exception("test", 200); } catch (Exception $e) { echo "{$e->getMessage()} ({$e->getCode()})\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rINBm
function name:  (null)
number of ops:  17
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'test'
          2        SEND_VAL_EX                                              200
          3        DO_FCALL                                      0          
          4      > THROW                                         0          $1
          5*       JMP                                                      ->16
    4     6  E > > CATCH                                       last         'Exception'
    5     7    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          8        DO_FCALL                                      0  $3      
          9        ROPE_INIT                                     4  ~6      $3
         10        ROPE_ADD                                      1  ~6      ~6, '+%28'
         11        INIT_METHOD_CALL                                         !0, 'getCode'
         12        DO_FCALL                                      0  $4      
         13        ROPE_ADD                                      2  ~6      ~6, $4
         14        ROPE_END                                      3  ~5      ~6, '%29%0A'
         15        ECHO                                                     ~5
    6    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.45 ms | 1384 KiB | 13 Q