3v4l.org

run code in 300+ PHP versions simultaneously
<?php const FOO = new stdClass(); var_dump(FOO); $foo = FOO; $foo->bar = 'bar'; var_dump(FOO);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s7rHE
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'FOO', <const ast>
    4     1        INIT_FCALL                                               'var_dump'
          2        FETCH_CONSTANT                                   ~1      'FOO'
          3        SEND_VAL                                                 ~1
          4        DO_ICALL                                                 
    5     5        FETCH_CONSTANT                                   ~3      'FOO'
          6        ASSIGN                                                   !0, ~3
    6     7        ASSIGN_OBJ                                               !0, 'bar'
          8        OP_DATA                                                  'bar'
    7     9        INIT_FCALL                                               'var_dump'
         10        FETCH_CONSTANT                                   ~6      'FOO'
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.04 ms | 996 KiB | 14 Q