3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { false and yield; } var_dump(f()); foreach(f() as $o) { var_dump($o); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/WC9bj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'f'
          2        DO_FCALL                                      0  $1      
          3        SEND_VAR                                                 $1
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'f'
          6        DO_FCALL                                      0  $3      
          7      > FE_RESET_R                                       $4      $3, ->13
          8    > > FE_FETCH_R                                               $4, !0, ->13
    9     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $4
   10    14      > RETURN                                                   1

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

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.94 ms | 1401 KiB | 17 Q