3v4l.org

run code in 300+ PHP versions simultaneously
<?php function unlim_args(){ $arr = func_get_args(); return implode(",",$arr); } echo unlim_args()."\n"; echo unlim_args(1,2,3,4,5)."\n"; echo unlim_args(1,2,3)."\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CcRKp
function name:  (null)
number of ops:  21
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'unlim_args'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      $0, '%0A'
          3        ECHO                                                     ~1
    8     4        INIT_FCALL                                               'unlim_args'
          5        SEND_VAL                                                 1
          6        SEND_VAL                                                 2
          7        SEND_VAL                                                 3
          8        SEND_VAL                                                 4
          9        SEND_VAL                                                 5
         10        DO_FCALL                                      0  $2      
         11        CONCAT                                           ~3      $2, '%0A'
         12        ECHO                                                     ~3
    9    13        INIT_FCALL                                               'unlim_args'
         14        SEND_VAL                                                 1
         15        SEND_VAL                                                 2
         16        SEND_VAL                                                 3
         17        DO_FCALL                                      0  $4      
         18        CONCAT                                           ~5      $4, '%0A'
         19        ECHO                                                     ~5
         20      > RETURN                                                   1

Function unlim_args:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CcRKp
function name:  unlim_args
number of ops:  8
compiled vars:  !0 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FUNC_GET_ARGS                                    ~1      
          1        ASSIGN                                                   !0, ~1
    5     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%2C'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6      > RETURN                                                   $3
    6     7*     > RETURN                                                   null

End of function unlim_args

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.12 ms | 1013 KiB | 17 Q