3v4l.org

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

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

End of function getvalues

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.51 ms | 1397 KiB | 13 Q