3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { } class C { const FOO = I::FOO; public $options = [self::FOO => "bar"]; } try { var_dump((new C)->options); } catch (Throwable $e) {} var_dump((new C)->options);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
filename:       /in/HgKbi
function name:  (null)
number of ops:  15
compiled vars:  !0 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                                   'var_dump'
          1        NEW                                                  $1      'C'
          2        DO_FCALL                                          0          
          3        FETCH_OBJ_R                                          ~3      $1, 'options'
          4        SEND_VAL                                                     ~3
          5        DO_ICALL                                                     
          6      > JMP                                                          ->8
   14     7  E > > CATCH                                           last         'Throwable'
   16     8    >   INIT_FCALL                                                   'var_dump'
          9        NEW                                                  $5      'C'
         10        DO_FCALL                                          0          
         11        FETCH_OBJ_R                                          ~7      $5, 'options'
         12        SEND_VAL                                                     ~7
         13        DO_ICALL                                                     
         14      > RETURN                                                       1

Class I: [no user functions]
Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
149.55 ms | 1713 KiB | 9 Q