3v4l.org

run code in 500+ PHP versions simultaneously
<?php function it(): \Iterator { yield from [1, 2]; yield from [3, 4]; } var_dump(iterator_to_array(it())); var_dump(iterator_to_array(it(), false));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Bs3r0
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                                   'var_dump'
          1        INIT_FCALL                                                   'iterator_to_array'
          2        INIT_FCALL                                                   'it'
          3        DO_FCALL                                          0  $0      
          4        SEND_VAR                                                     $0
          5        DO_ICALL                                             $1      
          6        SEND_VAR                                                     $1
          7        DO_ICALL                                                     
   10     8        INIT_FCALL                                                   'var_dump'
          9        INIT_FCALL                                                   'iterator_to_array'
         10        INIT_FCALL                                                   'it'
         11        DO_FCALL                                          0  $3      
         12        SEND_VAR                                                     $3
         13        SEND_VAL                                                     <false>
         14        DO_ICALL                                             $4      
         15        SEND_VAR                                                     $4
         16        DO_ICALL                                                     
         17      > RETURN                                                       1

Function it:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/Bs3r0
function name:  it
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   GENERATOR_CREATE                                             
    5     1        YIELD_FROM                                           ~0      <array>
          2        FREE                                                         ~0
    6     3        YIELD_FROM                                           ~1      <array>
          4        FREE                                                         ~1
    7     5      > GENERATOR_RETURN                                             

End of function it

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
115.54 ms | 490 KiB | 13 Q