3v4l.org

run code in 300+ PHP versions simultaneously
<?php function my_func(...$parameters) { echo "There were ".count($parameters)." parameters passed:\n"; foreach ($parameters as $a_parameter) { echo "Number ".$a_parameter."\n"; } } echo my_func(1, 2, 3, 4, 5); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QuJqD
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'my_func'
          1        SEND_VAL                                                 1
          2        SEND_VAL                                                 2
          3        SEND_VAL                                                 3
          4        SEND_VAL                                                 4
          5        SEND_VAL                                                 5
          6        DO_FCALL                                      0  $0      
          7        ECHO                                                     $0
   15     8      > RETURN                                                   1

Function my_func:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/QuJqD
function name:  my_func
number of ops:  13
compiled vars:  !0 = $parameters, !1 = $a_parameter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_VARIADIC                                    !0      
    5     1        COUNT                                            ~2      !0
          2        CONCAT                                           ~3      'There+were+', ~2
          3        CONCAT                                           ~4      ~3, '+parameters+passed%3A%0A'
          4        ECHO                                                     ~4
    7     5      > FE_RESET_R                                       $5      !0, ->11
          6    > > FE_FETCH_R                                               $5, !1, ->11
    9     7    >   CONCAT                                           ~6      'Number+', !1
          8        CONCAT                                           ~7      ~6, '%0A'
          9        ECHO                                                     ~7
    7    10      > JMP                                                      ->6
         11    >   FE_FREE                                                  $5
   11    12      > RETURN                                                   null

End of function my_func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.25 ms | 1014 KiB | 14 Q