3v4l.org

run code in 300+ PHP versions simultaneously
<?php $z[0] = 'wonderous'; $z[1] = 'a thing of beauty is '; $o = new stdClass; $o->p["a"][0] = $z[1]; $o->p["a"][1] = $z[0]; echo "{$o->p['a'][0]}\n"; echo $o->p["a"][1],"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y8nMZ
function name:  (null)
number of ops:  29
compiled vars:  !0 = $z, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 0
          1        OP_DATA                                                  'wonderous'
    3     2        ASSIGN_DIM                                               !0, 1
          3        OP_DATA                                                  'a+thing+of+beauty+is+'
    4     4        NEW                                              $4      'stdClass'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
    5     7        FETCH_DIM_R                                      ~10     !0, 1
          8        FETCH_OBJ_W                                      $7      !1, 'p'
          9        FETCH_DIM_W                                      $8      $7, 'a'
         10        ASSIGN_DIM                                               $8, 0
         11        OP_DATA                                                  ~10
    6    12        FETCH_DIM_R                                      ~14     !0, 0
         13        FETCH_OBJ_W                                      $11     !1, 'p'
         14        FETCH_DIM_W                                      $12     $11, 'a'
         15        ASSIGN_DIM                                               $12, 1
         16        OP_DATA                                                  ~14
    7    17        FETCH_OBJ_R                                      ~15     !1, 'p'
         18        FETCH_DIM_R                                      ~16     ~15, 'a'
         19        FETCH_DIM_R                                      ~17     ~16, 0
         20        NOP                                                      
         21        FAST_CONCAT                                      ~18     ~17, '%0A'
         22        ECHO                                                     ~18
    8    23        FETCH_OBJ_R                                      ~19     !1, 'p'
         24        FETCH_DIM_R                                      ~20     ~19, 'a'
         25        FETCH_DIM_R                                      ~21     ~20, 1
         26        ECHO                                                     ~21
         27        ECHO                                                     '%0A'
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.91 ms | 1394 KiB | 13 Q