3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo(...$args) { var_dump($args); } function gen() { yield 1.23 => 123; } foo(...gen());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Un8Tq
function name:  (null)
number of ops:  8
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   6     1        NOP                                                      
   9     2        INIT_FCALL                                               'foo'
         3        INIT_FCALL                                               'gen'
         4        DO_FCALL                                      0  $0      
         5        SEND_UNPACK                                              $0
         6        DO_FCALL                                      0          
         7      > RETURN                                                   1

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

Function gen:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/Un8Tq
function name:  gen
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   GENERATOR_CREATE                                         
   7     1        YIELD                                                    123, 1.23
   8     2      > GENERATOR_RETURN                                         

End of function gen

Generated using Vulcan Logic Dumper, using php 7.2.0