3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DbTable { public function __construct() { try { throw new \Exception('Database made a boo boo'); } catch (\Exception $e) { // ok, reconnect } } } try { throw new \Exception('Server made a boo boo'); } catch(\Exception $e) { // do smth echo $e->getMessage()."\n"; throw $e; } finally { $db = new DbTable(); echo "Done\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/0XfJD
function name:  (null)
number of ops:  19
compiled vars:  !0 = $e, !1 = $db
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $3      'Exception'
          1        SEND_VAL_EX                                              'Server+made+a+boo+boo'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $3
          4*       JMP                                                      ->11
   17     5  E > > CATCH                                       last         'Exception'
   19     6    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          7        DO_FCALL                                      0  $5      
          8        CONCAT                                           ~6      $5, '%0A'
          9        ECHO                                                     ~6
   20    10      > THROW                                         0          !0
   22    11*       FAST_CALL                                                ->13
         12*       JMP                                                      ->18
   23    13*       NEW                                              $7      'DbTable'
         14*       DO_FCALL                                      0          
         15*       ASSIGN                                                   !1, $7
   24    16*       ECHO                                                     'Done%0A'
         17*       FAST_RET                                                 
   25    18*     > RETURN                                                   1

Class DbTable:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
Found catch point at position: 5
Branch analysis from position: 5
2 jumps found. (Code = 107) Position 1 = 6, Position 2 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0XfJD
function name:  __construct
number of ops:  7
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Exception'
          1        SEND_VAL_EX                                              'Database+made+a+boo+boo'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
          4*       JMP                                                      ->6
    8     5  E > > CATCH                                       last         'Exception'
   11     6    > > RETURN                                                   null

End of function __construct

End of class DbTable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.17 ms | 1395 KiB | 13 Q