3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.31 ms | 1392 KiB | 13 Q