3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new stdClass(); $data->hello = 'world'; $hello = $data->hello; $foo = $data->foo; echo $hello; echo $foo;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iSUer
function name:  (null)
number of ops:  12
compiled vars:  !0 = $data, !1 = $hello, !2 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    5     3        ASSIGN_OBJ                                               !0, 'hello'
          4        OP_DATA                                                  'world'
    7     5        FETCH_OBJ_R                                      ~7      !0, 'hello'
          6        ASSIGN                                                   !1, ~7
    8     7        FETCH_OBJ_R                                      ~9      !0, 'foo'
          8        ASSIGN                                                   !2, ~9
   10     9        ECHO                                                     !1
   11    10        ECHO                                                     !2
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.05 ms | 1393 KiB | 13 Q