3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass(); $obj->hello = 'world'; $obj->foo = 'bar'; echo $obj->hello . '<br>'; echo $obj->foo . '<br>'; echo $obj->gugugu . '<br>'; print_r($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EG7Pp
function name:  (null)
number of ops:  20
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        ASSIGN_OBJ                                               !0, 'hello'
          4        OP_DATA                                                  'world'
    6     5        ASSIGN_OBJ                                               !0, 'foo'
          6        OP_DATA                                                  'bar'
    8     7        FETCH_OBJ_R                                      ~6      !0, 'hello'
          8        CONCAT                                           ~7      ~6, '%3Cbr%3E'
          9        ECHO                                                     ~7
    9    10        FETCH_OBJ_R                                      ~8      !0, 'foo'
         11        CONCAT                                           ~9      ~8, '%3Cbr%3E'
         12        ECHO                                                     ~9
   10    13        FETCH_OBJ_R                                      ~10     !0, 'gugugu'
         14        CONCAT                                           ~11     ~10, '%3Cbr%3E'
         15        ECHO                                                     ~11
   12    16        INIT_FCALL                                               'print_r'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.81 ms | 1395 KiB | 15 Q