3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->{'123'} = "foo"; $arr = (array) $obj; print_r($arr); $f = var_export($arr); // PHP4 only: "foo" echo $f["123"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I53qT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $obj, !1 = $arr, !2 = $f
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, '123'
          4        OP_DATA                                                  'foo'
    4     5        CAST                                          7  ~7      !0
          6        ASSIGN                                                   !1, ~7
    5     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    6    10        INIT_FCALL                                               'var_export'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $10     
         13        ASSIGN                                                   !2, $10
    7    14        FETCH_DIM_R                                      ~12     !2, 123
         15        ECHO                                                     ~12
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.74 ms | 1394 KiB | 17 Q