3v4l.org

run code in 300+ PHP versions simultaneously
<?php function lol($a, $b, $c){ $args = func_get_args(); var_dump(...$args); } function baz($a, $b, $c){ $args = func_get_args(); lol(...$args); } baz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ld4aM
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'baz'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function lol

Function baz:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ld4aM
function name:  baz
number of ops:  10
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $args
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    9     3        FUNC_GET_ARGS                                    ~4      
          4        ASSIGN                                                   !3, ~4
   10     5        INIT_FCALL                                               'lol'
          6        SEND_UNPACK                                              !3
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      1          
   11     9      > RETURN                                                   null

End of function baz

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.67 ms | 1398 KiB | 17 Q