3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mutate(&$x) { $x = 'bar'; } $var = 'foo'; mutate($var); echo $var; // bar
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qsPCF
function name:  (null)
number of ops:  6
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'foo'
    8     1        INIT_FCALL                                               'mutate'
          2        SEND_REF                                                 !0
          3        DO_FCALL                                      0          
   10     4        ECHO                                                     !0
          5      > RETURN                                                   1

Function mutate:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qsPCF
function name:  mutate
number of ops:  3
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !0, 'bar'
    4     2      > RETURN                                                   null

End of function mutate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.27 ms | 1388 KiB | 14 Q