3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $a = NULL; $a->test(); } catch (BadMethodCallException $e) { echo $e->getMessage(); } catch (EngineException $e) { echo $e->getMessage(); } catch (Error $e) { echo $e->getMessage(); }
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 = 9
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
Found catch point at position: 14
Branch analysis from position: 14
filename:       /in/CMTaK
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, null
    5     1        INIT_METHOD_CALL                                         !0, 'test'
          2        DO_FCALL                                      0          
          3      > JMP                                                      ->18
    6     4  E > > CATCH                                                    'BadMethodCallException', ->9
    7     5    >   INIT_METHOD_CALL                                         !1, 'getMessage'
          6        DO_FCALL                                      0  $4      
          7        ECHO                                                     $4
          8      > JMP                                                      ->18
    8     9  E > > CATCH                                                    'EngineException', ->14
    9    10    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $5      
         12        ECHO                                                     $5
         13      > JMP                                                      ->18
   10    14  E > > CATCH                                       last         'Error'
   11    15    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         16        DO_FCALL                                      0  $6      
         17        ECHO                                                     $6
   12    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.59 ms | 1394 KiB | 13 Q