Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename: /in/4X2ts
function name: (null)
number of ops: 40
compiled vars: !0 = $adult_array, !1 = $children_array, !2 = $senior_array, !3 = $bigArray, !4 = $BusinessTravels, !5 = $StudentTravels, !6 = $SeniorTravels, !7 = $SchengenTravels, !8 = $finalResult
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
5 0 E > ASSIGN !0, <array>
50 1 ASSIGN !1, <array>
66 2 ASSIGN !2, <array>
79 3 INIT_FCALL 'array_merge'
4 SEND_VAR !0
5 SEND_VAR !2
6 SEND_VAR !1
7 DO_ICALL $12
8 ASSIGN !3, $12
82 9 INIT_FCALL_BY_NAME 'sortByTravelPlan'
10 SEND_VAL_EX 'Business'
11 SEND_VAR_EX !3
12 DO_FCALL 0 $14
13 ASSIGN !4, $14
83 14 INIT_FCALL_BY_NAME 'sortByTravelPlan'
15 SEND_VAL_EX 'Student'
16 SEND_VAR_EX !3
17 DO_FCALL 0 $16
18 ASSIGN !5, $16
84 19 INIT_FCALL_BY_NAME 'sortByTravelPlan'
20 SEND_VAL_EX 'Senior'
21 SEND_VAR_EX !3
22 DO_FCALL 0 $18
23 ASSIGN !6, $18
85 24 INIT_FCALL_BY_NAME 'sortByTravelPlan'
25 SEND_VAL_EX 'Schengen'
26 SEND_VAR_EX !3
27 DO_FCALL 0 $20
28 ASSIGN !7, $20
90 29 INIT_FCALL 'array_merge'
30 SEND_VAR !4
31 SEND_VAR !5
32 SEND_VAR !6
33 SEND_VAR !7
34 DO_ICALL $22
35 ASSIGN !8, $22
92 36 INIT_FCALL 'print_r'
37 SEND_VAR !8
38 DO_ICALL
122 39 > RETURN 1
Function sortbytravelplan:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename: /in/4X2ts
function name: sortByTravelPlan
number of ops: 21
compiled vars: !0 = $type, !1 = $bigArray, !2 = $Array, !3 = $value, !4 = $key
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
94 0 E > RECV !0
1 RECV !1
95 2 ASSIGN !2, <array>
96 3 > FE_RESET_R $6 !1, ->15
4 > > FE_FETCH_R ~7 $6, !3, ->15
5 > ASSIGN !4, ~7
97 6 FETCH_DIM_R ~9 !3, 'travel_plan'
7 IS_EQUAL !0, ~9
8 > JMPZ ~10, ->14
98 9 > INIT_FCALL 'array_push'
10 SEND_REF !2
11 FETCH_DIM_R ~11 !1, !4
12 SEND_VAL ~11
13 DO_ICALL
96 14 > > JMP ->4
15 > FE_FREE $6
101 16 INIT_FCALL_BY_NAME 'processArray'
17 SEND_VAR_EX !2
18 DO_FCALL 0 $13
19 > RETURN $13
102 20* > RETURN null
End of function sortbytravelplan
Function processarray:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 17
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 16
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 16
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename: /in/4X2ts
function name: processArray
number of ops: 27
compiled vars: !0 = $array, !1 = $result, !2 = $prev_price, !3 = $max_age, !4 = $value, !5 = $key
line #* E I O op fetch ext return operands
-------------------------------------------------------------------------------------
104 0 E > RECV !0
105 1 ASSIGN !1, <array>
107 2 ASSIGN !2, null
108 3 ASSIGN !3, null
109 4 > FE_RESET_R $9 !0, ->17
5 > > FE_FETCH_R ~10 $9, !4, ->17
6 > ASSIGN !5, ~10
110 7 FETCH_DIM_R ~13 !4, 'travel_plan'
8 ASSIGN_DIM !1, 'travel_plan'
9 OP_DATA ~13
111 10 FETCH_DIM_R ~14 !4, 'premium_price'
11 IS_SMALLER !2, ~14
12 > JMPZ ~15, ->16
112 13 > FETCH_DIM_R ~17 !4, 'premium_price'
14 ASSIGN_DIM !1, 'premium_price'
15 OP_DATA ~17
109 16 > > JMP ->5
17 > FE_FREE $9
116 18 ASSIGN_DIM !1, 'upper_limit'
19 OP_DATA 30
117 20 ASSIGN_DIM !1, 'lower_limit'
21 OP_DATA 0
118 22 COUNT ~21 !0
23 ASSIGN_DIM !1, 'no_travellers'
24 OP_DATA ~21
119 25 > RETURN !1
120 26* > RETURN null
End of function processarray
Generated using Vulcan Logic Dumper, using php 8.0.0