3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o1 = new stdClass(); $o2 = $o1; $o3 = clone $o1; $o1->content = 'homepage'; var_export($o1); var_export($o2); var_export($o3);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lA4DK
function name:  (null)
number of ops:  18
compiled vars:  !0 = $o1, !1 = $o2, !2 = $o3
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        ASSIGN                                                   !1, !0
    4     4        CLONE                                            ~7      !0
          5        ASSIGN                                                   !2, ~7
    5     6        ASSIGN_OBJ                                               !0, 'content'
          7        OP_DATA                                                  'homepage'
    6     8        INIT_FCALL                                               'var_export'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    7    11        INIT_FCALL                                               'var_export'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    8    14        INIT_FCALL                                               'var_export'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.45 ms | 1394 KiB | 15 Q