3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(...$data){ var_dump($data); } test(...(function(){ yield 0; yield 1; yield 2; yield 3; yield 4; })());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7i47p
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'test'
          1        DECLARE_LAMBDA_FUNCTION                          ~0      [0]
   13     2        INIT_DYNAMIC_CALL                                        ~0
          3        DO_FCALL                                      0  $1      
          4        SEND_UNPACK                                              $1
          5        CHECK_UNDEF_ARGS                                         
    7     6        DO_FCALL                                      1          
   13     7      > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/7i47p
function name:  {closure}
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   GENERATOR_CREATE                                         
    8     1        YIELD                                                    0
    9     2        YIELD                                                    1
   10     3        YIELD                                                    2
   11     4        YIELD                                                    3
   12     5        YIELD                                                    4
   13     6      > GENERATOR_RETURN                                         

End of Dynamic Function 0

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7i47p
function name:  test
number of ops:  5
compiled vars:  !0 = $data
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      > RETURN                                                   null

End of function test

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
234.78 ms | 1000 KiB | 15 Q