3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.08 ms | 1394 KiB | 15 Q