3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.01 ms | 1394 KiB | 15 Q