3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Example 4 $array = ['value']; $value =& $array[0]; $anotherArray = $array; $anotherArray[0] = 'surprise!'; echo $value . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MrKCp
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array, !1 = $value, !2 = $anotherArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        FETCH_DIM_W                                      $4      !0, 0
          2        ASSIGN_REF                                               !1, $4
    8     3        ASSIGN                                                   !2, !0
   10     4        ASSIGN_DIM                                               !2, 0
          5        OP_DATA                                                  'surprise%21'
   12     6        CONCAT                                           ~8      !1, '%0A'
          7        ECHO                                                     ~8
          8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
197.72 ms | 1396 KiB | 13 Q