3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->{"oink"} = "pig"; var_dump($obj,$obj->oink); $objj = new stdClass; $objj->oink = "pig"; var_dump($objj,$objj->oink);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5eU0L
function name:  (null)
number of ops:  21
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        SEND_VAR                                                 !0
          7        FETCH_OBJ_R                                      ~6      !0, 'oink'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                                 
    3    10        NEW                                              $8      'stdClass'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !1, $8
         13        ASSIGN_OBJ                                               !1, 'oink'
         14        OP_DATA                                                  'pig'
         15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        FETCH_OBJ_R                                      ~12     !1, 'oink'
         18        SEND_VAL                                                 ~12
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.57 ms | 1395 KiB | 15 Q