Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename: /in/jnPvC
function name: (null)
number of ops: 15
compiled vars: !0 = $a, !1 = $b
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
12 0 E > ECHO 'calling+function'
1 ECHO '%0A'
13 2 INIT_FCALL 'test'
3 DO_FCALL 0 $2
4 ASSIGN !0, $2
15 5 ECHO 'iterating'
6 ECHO '%0A'
17 7 > FE_RESET_R $4 !0, ->12
8 > > FE_FETCH_R $4, !1, ->12
18 9 > ECHO !1
10 ECHO '%0A'
17 11 > JMP ->8
12 > FE_FREE $4
21 13 ECHO 'done'
14 > RETURN 1
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 161) Position 1 = -2
filename: /in/jnPvC
function name: test
number of ops: 10
compiled vars: none
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > GENERATOR_CREATE
4 1 ECHO 'initial+work'
2 ECHO '%0A'
6 3 YIELD 1
7 4 ECHO 'extra+work'
5 ECHO '%0A'
8 6 YIELD 2
9 7 ECHO 'final+work'
8 ECHO '%0A'
10 9 > GENERATOR_RETURN
End of function test
Generated using Vulcan Logic Dumper, using php 8.0.0