3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = (object) "dff"; $obj->gg = 'fff'; $obj1 = (object) "dff"; $obj1->gg = 'fff'; $arr = array(); $arr[0] = $obj; $arr[1] = $obj1; print_r($arr); // outputs 'ciao'
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D6GHd
function name:  (null)
number of ops:  17
compiled vars:  !0 = $obj, !1 = $obj1, !2 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   CAST                                          8  ~3      'dff'
          1        ASSIGN                                                   !0, ~3
    3     2        ASSIGN_OBJ                                               !0, 'gg'
          3        OP_DATA                                                  'fff'
    5     4        CAST                                          8  ~6      'dff'
          5        ASSIGN                                                   !1, ~6
    6     6        ASSIGN_OBJ                                               !1, 'gg'
          7        OP_DATA                                                  'fff'
    9     8        ASSIGN                                                   !2, <array>
   10     9        ASSIGN_DIM                                               !2, 0
         10        OP_DATA                                                  !0
   11    11        ASSIGN_DIM                                               !2, 1
         12        OP_DATA                                                  !1
   13    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.02 ms | 1394 KiB | 15 Q