3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new = new class { public mixed $mixed; }; var_dump($new); var_dump(isset($new->mixed)); var_dump($new->mixed); # kaboom
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/35A87
function name:  (null)
number of ops:  16
compiled vars:  !0 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_ANON_CLASS                               <unknown> 
          1        NEW                                              $2      $1
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    7     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    8     7        INIT_FCALL                                               'var_dump'
          8        ISSET_ISEMPTY_PROP_OBJ                           ~6      !0, 'mixed'
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'var_dump'
         12        FETCH_OBJ_R                                      ~8      !0, 'mixed'
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Class class@anonymous: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
132.73 ms | 998 KiB | 14 Q