3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('f', 'a'); class C { public $a = 1; } $c = new C; echo $c->{f};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9XgIF
function name:  (null)
number of ops:  11
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'f'
          2        SEND_VAL                                                 'a'
          3        DO_ICALL                                                 
    6     4        NEW                                              $2      'C'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $2
    7     7        FETCH_CONSTANT                                   ~5      'f'
          8        FETCH_OBJ_R                                      ~6      !0, ~5
          9        ECHO                                                     ~6
         10      > RETURN                                                   1

Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.83 ms | 1394 KiB | 15 Q