3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $class = new ArrayObject(new stdClass()); $class->setFlags(ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); $class->foo = 'Bar'; 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 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 14
Branch analysis from position: 14
2 jumps found. (Code = 107) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 16
2 jumps found. (Code = 107) Position 1 = 17, Position 2 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 16
Branch analysis from position: 16
filename:       /in/PoibB
function name:  (null)
number of ops:  22
compiled vars:  !0 = $class, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ArrayObject'
          1        NEW                                              $3      'stdClass'
          2        DO_FCALL                                      0          
          3        SEND_VAR_NO_REF_EX                                       $3
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
    4     6        INIT_METHOD_CALL                                         !0, 'setFlags'
          7        SEND_VAL_EX                                              3
          8        DO_FCALL                                      0          
    5     9        ASSIGN_OBJ                                               !0, 'foo'
         10        OP_DATA                                                  'Bar'
    7    11        FETCH_DIM_R                                      ~9      !0, 'foo'
         12        ECHO                                                     ~9
         13      > JMP                                                      ->21
    8    14  E > > CATCH                                                    'Exception', ->16
         15    > > JMP                                                      ->21
   10    16  E > > CATCH                                       last         'Throwable'
   11    17    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         18        DO_FCALL                                      0  $10     
         19        CONCAT                                           ~11     'Oops%3A+', $10
         20        ECHO                                                     ~11
   12    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.74 ms | 1394 KiB | 13 Q