3v4l.org

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

Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jp2CQ
function name:  f
number of ops:  3
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   RECV_INIT                                        !0      17
          1        ASSIGN_OP                                     8          !0, 1
          2      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.23 ms | 1388 KiB | 14 Q