3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new stdClass; $o->aaa = 1; $a = [$o]; var_dump((array)$a[0]);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pM9Tk
function name:  (null)
number of ops:  13
compiled vars:  !0 = $o, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, 'aaa'
          4        OP_DATA                                                  1
    5     5        INIT_ARRAY                                       ~6      !0
          6        ASSIGN                                                   !1, ~6
    6     7        INIT_FCALL                                               'var_dump'
          8        FETCH_DIM_R                                      ~8      !1, 0
          9        CAST                                          7  ~9      ~8
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.63 ms | 1394 KiB | 15 Q