Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: (null) number of ops: 18 compiled vars: !0 = $prorate, !1 = $result line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 203 0 E > NEW $2 'Prorate' 1 SEND_VAL_EX 19990 2 SEND_VAL_EX 19995 3 DO_FCALL 0 4 ASSIGN !0, $2 204 5 INIT_METHOD_CALL !0, 'set_source_expiry' 6 SEND_VAL_EX '2014-07-23' 7 DO_FCALL 0 205 8 INIT_METHOD_CALL !0, 'set_destination_expiry' 9 SEND_VAL_EX '19-01-2014' 10 DO_FCALL 0 206 11 INIT_METHOD_CALL !0, 'pro_rate' 12 DO_FCALL 0 $7 13 ASSIGN !1, $7 207 14 INIT_FCALL 'var_dump' 15 SEND_VAR !1 16 DO_ICALL 17 > RETURN 1 Class Prorate: Function __construct: Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 10 Branch analysis from position: 6 2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16 Branch analysis from position: 12 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 16 Branch analysis from position: 10 filename: /in/UjMcK function name: __construct number of ops: 33 compiled vars: !0 = $source_price, !1 = $destination_price, !2 = $source_term, !3 = $destination_term line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 26 0 E > RECV_INIT !0 null 1 RECV_INIT !1 null 2 RECV_INIT !2 12 3 RECV_INIT !3 12 28 4 IS_NOT_EQUAL !0, null 5 > JMPZ ~4, ->10 30 6 > INIT_METHOD_CALL 'set_source_price' 7 SEND_VAR_EX !0 8 SEND_VAR_EX !2 9 DO_FCALL 0 32 10 > IS_NOT_EQUAL !1, null 11 > JMPZ ~6, ->16 34 12 > INIT_METHOD_CALL 'set_destination_price' 13 SEND_VAR_EX !1 14 SEND_VAR_EX !3 15 DO_FCALL 0 36 16 > NEW $9 'DateTime' 17 DO_FCALL 0 18 ASSIGN_OBJ 'source_expiry' 19 OP_DATA $9 37 20 NEW $12 'DateTime' 21 DO_FCALL 0 22 ASSIGN_OBJ 'destination_expiry' 23 OP_DATA $12 38 24 NEW $15 'DateTime' 25 DO_FCALL 0 26 ASSIGN_OBJ 'today' 27 OP_DATA $15 39 28 ASSIGN_OBJ 'source_term' 29 OP_DATA !2 40 30 ASSIGN_OBJ 'destination_term' 31 OP_DATA !3 41 32 > RETURN null End of function __construct Function set_source_expiry: Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 8 Branch analysis from position: 3 2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12 Branch analysis from position: 9 1 jumps found. (Code = 42) Position 1 = 17 Branch analysis from position: 17 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 12 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 8 filename: /in/UjMcK function name: set_source_expiry number of ops: 20 compiled vars: !0 = $date line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 46 0 E > RECV !0 48 1 TYPE_CHECK 256 ~1 !0 2 > JMPZ_EX ~1 ~1, ->8 3 > INIT_FCALL 'is_a' 4 SEND_VAR !0 5 SEND_VAL 'DateTime' 6 DO_ICALL $2 7 BOOL ~1 $2 8 > > JMPZ ~1, ->12 50 9 > ASSIGN_OBJ 'source_expiry' 10 OP_DATA !0 11 > JMP ->17 54 12 > NEW $5 'DateTime' 13 SEND_VAR_EX !0 14 DO_FCALL 0 15 ASSIGN_OBJ 'source_expiry' 16 OP_DATA $5 56 17 > FETCH_THIS ~7 18 > RETURN ~7 57 19* > RETURN null End of function set_source_expiry Function get_source_expiry: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: get_source_expiry number of ops: 3 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 61 0 E > FETCH_OBJ_R ~0 'source_expiry' 1 > RETURN ~0 62 2* > RETURN null End of function get_source_expiry Function set_destination_expiry: Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 8 Branch analysis from position: 3 2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12 Branch analysis from position: 9 1 jumps found. (Code = 42) Position 1 = 17 Branch analysis from position: 17 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 12 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 8 filename: /in/UjMcK function name: set_destination_expiry number of ops: 20 compiled vars: !0 = $date line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 67 0 E > RECV !0 69 1 TYPE_CHECK 256 ~1 !0 2 > JMPZ_EX ~1 ~1, ->8 3 > INIT_FCALL 'is_a' 4 SEND_VAR !0 5 SEND_VAL 'DateTime' 6 DO_ICALL $2 7 BOOL ~1 $2 8 > > JMPZ ~1, ->12 71 9 > ASSIGN_OBJ 'destination_expiry' 10 OP_DATA !0 11 > JMP ->17 75 12 > NEW $5 'DateTime' 13 SEND_VAR_EX !0 14 DO_FCALL 0 15 ASSIGN_OBJ 'destination_expiry' 16 OP_DATA $5 77 17 > FETCH_THIS ~7 18 > RETURN ~7 78 19* > RETURN null End of function set_destination_expiry Function get_destination_expiry: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: get_destination_expiry number of ops: 3 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 82 0 E > FETCH_OBJ_R ~0 'destination_expiry' 1 > RETURN ~0 83 2* > RETURN null End of function get_destination_expiry Function days_remaining: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: days_remaining number of ops: 9 compiled vars: !0 = $date line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 87 0 E > RECV !0 89 1 INIT_METHOD_CALL 'diff_days' 2 SEND_VAR_EX !0 3 CHECK_FUNC_ARG 4 FETCH_OBJ_FUNC_ARG $1 'today' 5 SEND_FUNC_ARG $1 6 DO_FCALL 0 $2 7 > RETURN $2 90 8* > RETURN null End of function days_remaining Function value_per_day: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: value_per_day number of ops: 11 compiled vars: !0 = $price_in_cents, !1 = $term_in_months, !2 = $value_per_day line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 95 0 E > RECV !0 1 RECV !1 97 2 DIV ~3 !0, !1 3 DIV ~4 ~3, 30.44 4 ASSIGN !2, ~4 98 5 INIT_FCALL 'ceil' 6 SEND_VAR !2 7 DO_ICALL $6 8 DIV ~7 $6, 100 9 > RETURN ~7 99 10* > RETURN null End of function value_per_day Function set_today: Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 8 Branch analysis from position: 3 2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12 Branch analysis from position: 9 1 jumps found. (Code = 42) Position 1 = 24 Branch analysis from position: 24 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 12 2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 19 Branch analysis from position: 14 1 jumps found. (Code = 42) Position 1 = 24 Branch analysis from position: 24 Branch analysis from position: 19 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 8 filename: /in/UjMcK function name: set_today number of ops: 25 compiled vars: !0 = $date line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 105 0 E > RECV_INIT !0 null 107 1 TYPE_CHECK 256 ~1 !0 2 > JMPZ_EX ~1 ~1, ->8 3 > INIT_FCALL 'is_a' 4 SEND_VAR !0 5 SEND_VAL 'DateTime' 6 DO_ICALL $2 7 BOOL ~1 $2 8 > > JMPZ ~1, ->12 109 9 > ASSIGN_OBJ 'today' 10 OP_DATA !0 11 > JMP ->24 113 12 > TYPE_CHECK 2 !0 13 > JMPZ ~4, ->19 115 14 > NEW $6 'DateTime' 15 DO_FCALL 0 16 ASSIGN_OBJ 'today' 17 OP_DATA $6 18 > JMP ->24 119 19 > NEW $9 'DateTime' 20 SEND_VAR_EX !0 21 DO_FCALL 0 22 ASSIGN_OBJ 'today' 23 OP_DATA $9 122 24 > > RETURN null End of function set_today Function set_source_price: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: set_source_price number of ops: 11 compiled vars: !0 = $price_in_cents, !1 = $term_in_months line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 127 0 E > RECV !0 1 RECV !1 129 2 INIT_METHOD_CALL 'value_per_day' 3 SEND_VAR !0 4 SEND_VAR !1 5 DO_FCALL 0 $3 6 ASSIGN_OBJ 'source_price' 7 OP_DATA $3 130 8 FETCH_THIS ~4 9 > RETURN ~4 131 10* > RETURN null End of function set_source_price Function get_source_price: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: get_source_price number of ops: 3 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 135 0 E > FETCH_OBJ_R ~0 'source_price' 1 > RETURN ~0 136 2* > RETURN null End of function get_source_price Function set_destination_price: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: set_destination_price number of ops: 11 compiled vars: !0 = $price_in_cents, !1 = $term_in_months line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 141 0 E > RECV !0 1 RECV !1 143 2 INIT_METHOD_CALL 'value_per_day' 3 SEND_VAR !0 4 SEND_VAR !1 5 DO_FCALL 0 $3 6 ASSIGN_OBJ 'destination_price' 7 OP_DATA $3 144 8 FETCH_THIS ~4 9 > RETURN ~4 145 10* > RETURN null End of function set_destination_price Function get_destination_price: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: get_destination_price number of ops: 3 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 149 0 E > FETCH_OBJ_R ~0 'destination_price' 1 > RETURN ~0 150 2* > RETURN null End of function get_destination_price Function target_value: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: target_value number of ops: 8 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 157 0 E > INIT_METHOD_CALL 'days_remaining' 1 FETCH_OBJ_R ~0 'destination_expiry' 2 SEND_VAL ~0 3 DO_FCALL 0 $1 4 FETCH_OBJ_R ~2 'destination_price' 5 MUL ~3 $1, ~2 6 > RETURN ~3 158 7* > RETURN null End of function target_value Function add_days: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: add_days number of ops: 9 compiled vars: none line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 165 0 E > INIT_FCALL 'ceil' 1 INIT_METHOD_CALL 'target_value' 2 DO_FCALL 0 $0 3 FETCH_OBJ_R ~1 'source_price' 4 DIV ~2 $0, ~1 5 SEND_VAL ~2 6 DO_ICALL $3 7 > RETURN $3 166 8* > RETURN null End of function add_days Function diff_days: Finding entry points Branch analysis from position: 0 2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21 Branch analysis from position: 20 1 jumps found. (Code = 62) Position 1 = -2 Branch analysis from position: 21 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: diff_days number of ops: 27 compiled vars: !0 = $x, !1 = $y, !2 = $diff line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 171 0 E > RECV !0 1 RECV !1 173 2 INIT_FCALL 'strtotime' 3 INIT_METHOD_CALL !1, 'format' 4 SEND_VAL_EX 'Y-m-d' 5 DO_FCALL 0 $3 6 SEND_VAR $3 7 DO_ICALL $4 8 ASSIGN !1, $4 174 9 INIT_FCALL 'strtotime' 10 INIT_METHOD_CALL !0, 'format' 11 SEND_VAL_EX 'Y-m-d' 12 DO_FCALL 0 $6 13 SEND_VAR $6 14 DO_ICALL $7 15 ASSIGN !0, $7 175 16 SUB ~9 !0, !1 17 ASSIGN !2, ~9 176 18 IS_SMALLER_OR_EQUAL !2, 0 19 > JMPZ ~11, ->21 20 > > RETURN 0 177 21 > INIT_FCALL 'ceil' 22 DIV ~12 !2, 86400 23 SEND_VAL ~12 24 DO_ICALL $13 25 > RETURN $13 178 26* > RETURN null End of function diff_days Function pro_rate: Finding entry points Branch analysis from position: 0 1 jumps found. (Code = 62) Position 1 = -2 filename: /in/UjMcK function name: pro_rate number of ops: 48 compiled vars: !0 = $days, !1 = $result, !2 = $add, !3 = $total_add, !4 = $today, !5 = $source, !6 = $dest, !7 = $tmp line #* E I O op fetch ext return operands ------------------------------------------------------------------------------------- 186 0 E > INIT_METHOD_CALL 'diff_days' 1 FETCH_OBJ_R ~8 'source_expiry' 2 SEND_VAL ~8 3 FETCH_OBJ_R ~9 'today' 4 SEND_VAL ~9 5 DO_FCALL 0 $10 6 ASSIGN !0, $10 187 7 ASSIGN !1, <array> 188 8 INIT_METHOD_CALL 'add_days' 9 DO_FCALL 0 $13 10 ASSIGN !2, $13 189 11 ADD ~15 !0, !2 12 ASSIGN !3, ~15 190 13 FETCH_OBJ_R ~17 'today' 14 INIT_METHOD_CALL ~17, 'format' 15 SEND_VAL_EX 'Y-m-d' 16 DO_FCALL 0 $18 17 ASSIGN !4, $18 191 18 FETCH_OBJ_R ~20 'source_expiry' 19 INIT_METHOD_CALL ~20, 'format' 20 SEND_VAL_EX 'Y-m-d' 21 DO_FCALL 0 $21 22 ASSIGN !5, $21 192 23 FETCH_OBJ_R ~23 'destination_expiry' 24 INIT_METHOD_CALL ~23, 'format' 25 SEND_VAL_EX 'Y-m-d' 26 DO_FCALL 0 $24 27 ASSIGN !6, $24 193 28 ASSIGN_DIM !1, 'current_days' 29 OP_DATA !0 194 30 ASSIGN_DIM !1, 'pro_rate_days' 31 OP_DATA !2 195 32 ASSIGN_DIM !1, 'total_days' 33 OP_DATA !3 196 34 FETCH_OBJ_R ~29 'today' 35 CLONE ~30 ~29 36 ASSIGN !7, ~30 197 37 INIT_METHOD_CALL !7, 'modify' 38 ROPE_INIT 3 ~35 '%2B' 39 FETCH_DIM_R ~33 !1, 'total_days' 40 ROPE_ADD 1 ~35 ~35, ~33 41 ROPE_END 2 ~34 ~35, '+days' 42 SEND_VAL_EX ~34 43 DO_FCALL 0 $37 44 ASSIGN_DIM !1, 'date' 45 OP_DATA $37 198 46 > RETURN !1 199 47* > RETURN null End of function pro_rate End of class Prorate.
Generated using Vulcan Logic Dumper, using php 8.0.0