3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.88 ms | 1393 KiB | 13 Q