3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c = new stdClass(); $c->test = "hello"; echo $c->test; $a = array('a'=>'a','b'=>'c'); var_dump($a); $a[$row['c']] = $row['d']; var_dump($a); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/B2ULi
function name:  (null)
number of ops:  19
compiled vars:  !0 = $c, !1 = $a, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN_OBJ                                               !0, 'test'
          4        OP_DATA                                                  'hello'
    4     5        FETCH_OBJ_R                                      ~7      !0, 'test'
          6        ECHO                                                     ~7
    6     7        ASSIGN                                                   !1, <array>
    7     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
    8    11        FETCH_DIM_R                                      ~10     !2, 'c'
         12        FETCH_DIM_R                                      ~12     !2, 'd'
         13        ASSIGN_DIM                                               !1, ~10
         14        OP_DATA                                                  ~12
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
   10    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.75 ms | 1394 KiB | 15 Q