3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f($x = 5) {} function f2(...$args) {} f2('', ''); f2(x: ''); f2(y: ''); f('', ''); f(x: ''); f(y: '');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8JI1J
function name:  (null)
number of ops:  24
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'f2'
          1        SEND_VAL                                                 ''
          2        SEND_VAL                                                 ''
          3        DO_FCALL                                      0          
    7     4        INIT_FCALL                                               'f2'
          5        SEND_VAL_EX                                              '', 'x'
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      1          
    8     8        INIT_FCALL                                               'f2'
          9        SEND_VAL_EX                                              '', 'y'
         10        CHECK_UNDEF_ARGS                                         
         11        DO_FCALL                                      1          
   10    12        INIT_FCALL                                               'f'
         13        SEND_VAL                                                 ''
         14        SEND_VAL                                                 ''
         15        DO_FCALL                                      0          
   11    16        INIT_FCALL                                               'f'
         17        SEND_VAL                                                 ''
         18        DO_FCALL                                      0          
   12    19        INIT_FCALL                                               'f'
         20        SEND_VAL_EX                                              '', 'y'
         21        CHECK_UNDEF_ARGS                                         
         22        DO_FCALL                                      0          
         23      > RETURN                                                   1

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

End of function f

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8JI1J
function name:  f2
number of ops:  2
compiled vars:  !0 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV_VARIADIC                                    !0      
          1      > RETURN                                                   null

End of function f2

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.53 ms | 1399 KiB | 19 Q