3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function yf() { yield from 23; } $g = yf(); foreach($g as $val) { var_dump($val); }
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 5, Position 2 = 10
Branch analysis from position: 5
Jump found. Position 1 = 6, Position 2 = 10
Branch analysis from position: 6
Jump found. Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 10
Jump found. Position 1 = -2
Branch analysis from position: 10
filename:       /in/1XXtM
function name:  (null)
number of ops:  12
compiled vars:  !0 = $g, !1 = $val
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        INIT_FCALL                                               'yf'
         2        DO_FCALL                                      0  $2      
         3        ASSIGN                                                   !0, $2
   8     4      > FE_RESET_R                                       $4      !0, ->10
         5    > > FE_FETCH_R                                               $4, !1, ->10
         6    >   INIT_FCALL                                               'var_dump'
         7        SEND_VAR                                                 !1
         8        DO_ICALL                                                 
         9      > JMP                                                      ->5
        10    >   FE_FREE                                                  $4
        11      > RETURN                                                   1

Function yf:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/1XXtM
function name:  yf
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   4     0  E >   RAISE_ABSTRACT_ERROR                             ~0      23
         1        FREE                                                     ~0
   5     2      > GENERATOR_RETURN                                         

End of function yf

Generated using Vulcan Logic Dumper, using php 7.1.0