3v4l.org

run code in 300+ PHP versions simultaneously
<?php function method(?string ...$args) { var_dump($args); foreach ($args as $line) echo $line . PHP_EOL; } method('1', '2'); method('1'); method();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O85Hh
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'method'
          1        SEND_VAL                                                 '1'
          2        SEND_VAL                                                 '2'
          3        DO_FCALL                                      0          
    9     4        INIT_FCALL                                               'method'
          5        SEND_VAL                                                 '1'
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL                                               'method'
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Function method:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/O85Hh
function name:  method
number of ops:  11
compiled vars:  !0 = $args, !1 = $line
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV_VARIADIC                                    !0      
    4     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    5     4      > FE_RESET_R                                       $3      !0, ->9
          5    > > FE_FETCH_R                                               $3, !1, ->9
          6    >   CONCAT                                           ~4      !1, '%0A'
          7        ECHO                                                     ~4
          8      > JMP                                                      ->5
          9    >   FE_FREE                                                  $3
    6    10      > RETURN                                                   null

End of function method

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.71 ms | 1007 KiB | 17 Q