3v4l.org

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

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

End of function q

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.56 ms | 1388 KiB | 16 Q