3v4l.org

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

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jvqsn
function name:  x
number of ops:  8
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        PRE_INC                                                  !2
    4     4        ECHO                                                     !0
          5        ECHO                                                     !1
          6        ECHO                                                     !2
    5     7      > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.13 ms | 1389 KiB | 17 Q