3v4l.org

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

Function x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9FmQv
function name:  x
number of ops:  7
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL                                               'var_dump'
          3        FUNC_GET_ARGS                                    ~2      2
          4        SEND_VAL                                                 ~2
          5        DO_ICALL                                                 
    5     6      > RETURN                                                   null

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.46 ms | 1397 KiB | 18 Q