3v4l.org

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

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WqP5K
function name:  x
number of ops:  7
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV_INIT                                        !2      3
    3     3        ECHO                                                     !0
          4        ECHO                                                     !1
          5        ECHO                                                     !2
    4     6      > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.47 ms | 1401 KiB | 14 Q