3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.5 ms | 1392 KiB | 13 Q