3v4l.org

run code in 300+ PHP versions simultaneously
<?php function willOutputSingle() { yield 'sameKey' => 'originalValue'; yield 'sameKey' => 'otherValue'; } var_dump( iterator_to_array( willOutputSingle() ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pWeWT
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
    9     1        INIT_FCALL                                               'iterator_to_array'
   10     2        INIT_FCALL                                               'willoutputsingle'
          3        DO_FCALL                                      0  $0      
          4        SEND_VAR                                                 $0
    9     5        DO_ICALL                                         $1      
   10     6        SEND_VAR                                                 $1
    8     7        DO_ICALL                                                 
   12     8      > RETURN                                                   1

Function willoutputsingle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/pWeWT
function name:  willOutputSingle
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   GENERATOR_CREATE                                         
    4     1        YIELD                                                    'originalValue', 'sameKey'
    5     2        YIELD                                                    'otherValue', 'sameKey'
    6     3      > GENERATOR_RETURN                                         

End of function willoutputsingle

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.2 ms | 1013 KiB | 16 Q