3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new stdClass(); $o2 = new stdClass($a = $o1); var_dump($a);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LQH1S
function name:  (null)
number of ops:  12
compiled vars:  !0 = $o1, !1 = $o2, !2 = $a
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        NEW                                              $6      'stdClass'
          4        ASSIGN                                           ~7      !2, !0
          5        SEND_VAL_EX                                              ~7
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    4     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.59 ms | 1399 KiB | 15 Q