3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.07 ms | 1393 KiB | 13 Q