3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $A = array(); $A[0] = 5; $b = &$A[0]; echo $b . "\n"; $C = $A; $C[0] = 10; echo $A[0];
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/RZ1AJ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $A, !1 = $b, !2 = $C
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   ASSIGN                                                   !0, <array>
   3     1        ASSIGN_DIM                                               !0, 0
         2        OP_DATA                                                  5
   4     3        FETCH_DIM_W                                      $5      !0, 0
         4        ASSIGN_REF                                               !1, $5
   5     5        CONCAT                                           ~7      !1, '%0A'
         6        ECHO                                                     ~7
   6     7        ASSIGN                                                   !2, !0
   7     8        ASSIGN_DIM                                               !2, 0
         9        OP_DATA                                                  10
   8    10        FETCH_DIM_R                                      $10     !0, 0
        11        ECHO                                                     $10
        12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0