3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func() { yield yield yield yield yield yield 0; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oi694
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   1

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

End of function func

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.41 ms | 1447 KiB | 13 Q