3v4l.org

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

Function testit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qj7M7
function name:  testIt
number of ops:  3
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !0, 'Yay%21'
    7     2      > RETURN                                                   null

End of function testit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.05 ms | 1397 KiB | 14 Q