3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.29 ms | 1394 KiB | 15 Q