3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x($a, &$b, &$c = 3) { $c++; echo $a, $b, $c; } $z = 2; $y = null; x(1, $z, $y); 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/8JlFA
function name:  (null)
number of ops:  20
compiled vars:  !0 = $z, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 2
    8     1        ASSIGN                                                   !1, null
   10     2        INIT_FCALL                                               'x'
          3        SEND_VAL                                                 1
          4        SEND_REF                                                 !0
          5        SEND_REF                                                 !1
          6        DO_FCALL                                      0          
   11     7        INIT_FCALL                                               'x'
          8        SEND_VAL                                                 1
          9        SEND_REF                                                 !0
         10        DO_FCALL                                      0          
   12    11        INIT_FCALL                                               'x'
         12        SEND_VAL                                                 1
         13        SEND_REF                                                 !0
         14        DO_FCALL                                      0          
   13    15        INIT_FCALL                                               'x'
         16        SEND_VAL                                                 1
         17        SEND_REF                                                 !0
         18        DO_FCALL                                      0          
         19      > RETURN                                                   1

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8JlFA
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:
161.27 ms | 943 KiB | 18 Q