3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.33 ms | 1384 KiB | 13 Q