3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->{"oink"} = "pig"; var_dump($obj->oink); $objj = new stdClass; $objj->oink = "pig"; var_dump($objj->oink);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r6CaF
function name:  (null)
number of ops:  19
compiled vars:  !0 = $obj, !1 = $objj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
          3        ASSIGN_OBJ                                               !0, 'oink'
          4        OP_DATA                                                  'pig'
          5        INIT_FCALL                                               'var_dump'
          6        FETCH_OBJ_R                                      ~6      !0, 'oink'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
    3     9        NEW                                              $8      'stdClass'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !1, $8
         12        ASSIGN_OBJ                                               !1, 'oink'
         13        OP_DATA                                                  'pig'
         14        INIT_FCALL                                               'var_dump'
         15        FETCH_OBJ_R                                      ~12     !1, 'oink'
         16        SEND_VAL                                                 ~12
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.87 ms | 1394 KiB | 15 Q