Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename: /in/bL8Wa
function name: (null)
number of ops: 19
compiled vars: !0 = $userInput, !1 = $fruit
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
3 0 E > DECLARE_CLASS 'fruit'
22 1 > FE_RESET_R $2 <array>, ->17
2 > > FE_FETCH_R $2, !0, ->17
23 3 > INIT_FCALL 'getenumvalue'
4 SEND_VAR !0
5 SEND_VAL 'Fruit'
6 DO_FCALL 0 $3
7 ASSIGN !1, $3
24 8 TYPE_CHECK 1020 !1
9 > JMPZ ~5, ->14
25 10 > INIT_FCALL_BY_NAME 'eatFruit'
11 SEND_VAR_EX !1
12 DO_FCALL 0
24 13 > JMP ->16
27 14 > CONCAT ~7 !0, '+is+not+a+valid+Fruit%0A'
15 ECHO ~7
22 16 > > JMP ->2
17 > FE_FREE $2
39 18 > RETURN 1
Function getenumvalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/bL8Wa
function name: getEnumValue
number of ops: 21
compiled vars: !0 = $value, !1 = $enumClass, !2 = $cases, !3 = $index
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
10 0 E > RECV !0
1 RECV !1
11 2 FETCH_CLASS 0 $4 !1
3 INIT_STATIC_METHOD_CALL $4, 'cases'
4 DO_FCALL 0 $5
5 ASSIGN !2, $5
12 6 INIT_FCALL 'array_search'
7 SEND_VAR !0
8 INIT_FCALL 'array_column'
9 SEND_VAR !2
10 SEND_VAL 'name'
11 DO_ICALL $7
12 SEND_VAR $7
13 DO_ICALL $8
14 ASSIGN !3, $8
13 15 TYPE_CHECK 1018 !3
16 > JMPZ ~10, ->19
14 17 > FETCH_DIM_R ~11 !2, !3
18 > RETURN ~11
17 19 > > RETURN null
18 20* > RETURN null
End of function getenumvalue
Function eatfruit:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 15
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename: /in/bL8Wa
function name: eatFruit
number of ops: 16
compiled vars: !0 = $fruit
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
31 0 E > RECV !0
32 1 FETCH_CLASS_CONSTANT ~1 'Fruit', 'APPLE'
2 IS_IDENTICAL !0, ~1
3 > JMPZ ~2, ->6
33 4 > ECHO 'An+apple+a+day+keeps+the+doctor+away%0A'
32 5 > JMP ->15
34 6 > FETCH_CLASS_CONSTANT ~3 'Fruit', 'ORANGE'
7 IS_IDENTICAL !0, ~3
8 > JMPZ ~4, ->11
35 9 > ECHO 'When+life+gives+you+oranges%2C+make+orange+juice%0A'
34 10 > JMP ->15
36 11 > FETCH_CLASS_CONSTANT ~5 'Fruit', 'BANANA'
12 IS_IDENTICAL !0, ~5
13 > JMPZ ~6, ->15
37 14 > ECHO 'Banana+for+scale%0A'
39 15 > > RETURN null
End of function eatfruit
Class Fruit: [no user functions]
Generated using Vulcan Logic Dumper, using php 8.0.0