3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.23 ms | 1394 KiB | 15 Q