3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bla = new stdClass; try { $bla->method(); } catch (\Throwable $e) { echo get_class($e); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) 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/C7mF8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $bla, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'method'
          4        DO_FCALL                                      0          
          5      > JMP                                                      ->9
    5     6  E > > CATCH                                       last         'Throwable'
    6     7    >   GET_CLASS                                        ~6      !1
          8        ECHO                                                     ~6
    7     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.78 ms | 1392 KiB | 13 Q