3v4l.org

run code in 300+ PHP versions simultaneously
<?php function x() { return (yield 33); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ffnu
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 x:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename:       /in/2ffnu
function name:  x
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   GENERATOR_CREATE                                         
    3     1        YIELD                                            $0      33
          2      > GENERATOR_RETURN                                         
    4     3*     > GENERATOR_RETURN                                         

End of function x

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.9 ms | 1392 KiB | 13 Q