- Output for git.master, git.master_jit, rfc.property-hooks
- Warning: Undefined array key "REQUEST_METHOD" in /in/OBaoZ on line 3 <form name="GETRATES" action="http://wvwdrates.com/bill-estimator" method="post"> <table> <tr><td> <table> <tr><td width="50%">Customer Class:</td><td width="50%"> <SELECT NAME="CLASS"> <OPTION VALUE="">Select One...</OPTION> <OPTION VALUE="R" Warning: Undefined array key "CLASS" in /in/OBaoZ on line 44 >Residential</OPTION> <OPTION VALUE="M" Warning: Undefined array key "CLASS" in /in/OBaoZ on line 45 >Multi-Family</OPTION> <OPTION VALUE="C" Warning: Undefined array key "CLASS" in /in/OBaoZ on line 46 >Non-Residential</OPTION> <OPTION VALUE="RC" Warning: Undefined array key "CLASS" in /in/OBaoZ on line 47 >Recycled</OPTION> </SELECT><span class="error"> Warning: Undefined variable $CLASS_Err in /in/OBaoZ on line 48 </span> </td></tr> <tr><td>Units:</td><td><input value=" Warning: Undefined variable $UNITS in /in/OBaoZ on line 50 " name="UNITS" type="text" size="10" maxlength="10" /><span class="error"> Warning: Undefined variable $UNITS_Err in /in/OBaoZ on line 50 </span></td></tr> <tr><td width="50%">Pump Zone:</td><td width="50%"> <SELECT NAME="PUMPZONE"> <OPTION VALUE="">Select One...</OPTION> <OPTION VALUE="1" Warning: Undefined array key "PUMPZONE" in /in/OBaoZ on line 54 >1</OPTION> <OPTION VALUE="2" Warning: Undefined array key "PUMPZONE" in /in/OBaoZ on line 55 >2</OPTION> <OPTION VALUE="3" Warning: Undefined array key "PUMPZONE" in /in/OBaoZ on line 56 >3</OPTION> </SELECT><span class="error"> Warning: Undefined variable $PUMPZONE_Err in /in/OBaoZ on line 57 </span> </td></tr> <tr><td width="50%">Meter Size:</td><td width="50%"> <SELECT NAME="METERSIZE"> <OPTION VALUE="">Select One...</OPTION> <OPTION VALUE="5/8" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 62 >5/8</OPTION> <OPTION VALUE="3/4" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 63 >3/4</OPTION> <OPTION VALUE="1" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 64 >1</OPTION> <OPTION VALUE="1 1/2" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 65 >1 1/2</OPTION> <OPTION VALUE="2" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 66 >2</OPTION> <OPTION VALUE="3" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 67 >3</OPTION> <OPTION VALUE="4" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 68 >4</OPTION> <OPTION VALUE="6" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 69 >6</OPTION> <OPTION VALUE="8" Warning: Undefined array key "METERSIZE" in /in/OBaoZ on line 70 >8</OPTION> </SELECT><span class="error"> Warning: Undefined variable $METERSIZE_Err in /in/OBaoZ on line 71 </span> </td></tr> <tr><td align="left"> <input type="image" style="border:0px;" value="" src="http://wvwdrates.com/calculate.png"> </form></td> <td align="right"> <form name="RESET" action="http://wvwdrates.com/bill-estimator" method="post"> <input type="hidden" name="CLASS" value=""> <input type="hidden" name="UNITS" value=""> <input type="hidden" name="PUMPZONE" value=""> <input type="hidden" name="METERSIZE" value=""> <input type="submit" value="CLEAR"> </form></td> </tr></table> </td> </tr> </table> <BR><BR><BR> <? ///////// FORM INPUT ///////////////// $CLASS = $_POST['CLASS']; $UNITS = $_POST['UNITS']; $PUMPZONE = $_POST['PUMPZONE']; $METERSIZE = $_POST['METERSIZE']; ///////// STATIC DATA ///////////////// $commodity_new_tier1 = 2.69; $commodity_new_tier2 = 3.08; $commodity_new_tier3 = 3.08; $commodity_new_multi = 2.89; $commodity_new_comm = 2.95; $commodity_new_rec = 1.56; $commodity_current_tier1 = 2.46; $commodity_current_tier2 = 3.08; $commodity_current_tier3 = 3.08; $commodity_current_multi = 2.77; $commodity_current_comm = 2.81; $commodity_current_rec = 1.49; $pumpzone_new_zone1 = 0; $pumpzone_new_zone2 = 0.19; $pumpzone_new_zone3 = 0.36; $pumpzone_current_zone1 = 0; $pumpzone_current_zone2 = 0.19; $pumpzone_current_zone3 = 0.35; $meter_new_58 = 18.29; $meter_new_34 = 18.29; $meter_new_1 = 23.04; $meter_new_112 = 54.43; $meter_new_2 = 71.07; $meter_new_3 = 145.53; $meter_new_4 = 229.30; $meter_new_6 = 435.87; $meter_new_8 = 671.11; $meter_new_10 = 0; $meter_current_58 = 17.08; $meter_current_34 = 17.08; $meter_current_1 = 21.60; $meter_current_112 = 46.18; $meter_current_2 = 70.73; $meter_current_3 = 128.92; $meter_current_4 = 211.86; $meter_current_6 = 414.54; $meter_current_8 = 658.34; $meter_current_10 = 0; ///////// FORMULAS ///////////////// if ( $UNITS<=12 && $UNITS>=0) { $tier1=$UNITS; $tier2='N/A'; $tier3='N/A'; } else { $tier1='N/A'; } if ( $UNITS<=39 && $UNITS>=0) { $tier1=$UNITS; $tier2=27; $tier3='N/A'; } else { $tier1='N/A'; } if( $UNITS >=12 && $UNITS <=40) { $tier1=12; $tier2 = $UNITS-12; $tier3='N/A'; } else { $tier2='N/A'; } if ( $UNITS>=39 ) { $tier1=12; $tier2=27; $tier3=$UNITS-39; } else { $tier3='N/A'; } if ($_POST['METERSIZE']=='5/8') { $baserate_new = 18.29; $baserate_current = 17.08; } if ($_POST['METERSIZE']=='3/4') { $baserate_new = 18.29; $baserate_current = 17.08; } if ($_POST['METERSIZE']=='1') { $baserate_new = 23.04; $baserate_current = 21.60; } if ($_POST['METERSIZE']=='1 1/2') { $baserate_new = 54.43; $baserate_current = 46.18; } if ($_POST['METERSIZE']=='2') { $baserate_new = 71.07; $baserate_current = 70.73; } if ($_POST['METERSIZE']=='3') { $baserate_new = 145.53; $baserate_current = 128.92; } if ($_POST['METERSIZE']=='4') { $baserate_new = 229.30; $baserate_current = 211.86; } if ($_POST['METERSIZE']=='6') { $baserate_new = 435.87; $baserate_current = 414.54; } if ($_POST['METERSIZE']=='8') { $baserate_new = 671.11; $baserate_current = 658.34; } if ($CLASS == "R") { $newrate_tier1 = $tier1 * $commodity_new_tier1; $newrate_tier2 = $tier2 * $commodity_new_tier2; $newrate_tier3 = $tier3 * $commodity_new_tier3; $current_tier1 = $tier1 * $commodity_current_tier1; $current_tier2 = $tier2 * $commodity_current_tier2; $current_tier3 = $tier3 * $commodity_current_tier3; } if ($CLASS == "M") { $newrate_tier1 = $UNITS * $commodity_new_multi; $current_tier1 = $UNITS * $commodity_current_multi; $newrate_tier2 = 0; $current_tier2 = 0; $newrate_tier3 = 0; $current_tier3 = 0; } if ($CLASS == "C") { $newrate_tier1 = $UNITS * $commodity_new_comm; $current_tier1 = $UNITS * $commodity_current_comm; $newrate_tier2 = 0; $current_tier2 = 0; $newrate_tier3 = 0; $current_tier3 = 0; } if ($CLASS == "RC") { $newrate_tier1 = $UNITS * $commodity_new_rec; $current_tier1 = $UNITS * $commodity_current_rec; $newrate_tier2 = 0; $current_tier2 = 0; $newrate_tier3 = 0; $current_tier3 = 0; } if (empty($PUMPZONE)) { $newrate_pumpzone = 0; $current_pumpzone = 0; } if ($PUMPZONE == "1") { $newrate_pumpzone = 0; $current_pumpzone = 0; } if ($PUMPZONE == "2") { $newrate_pumpzone = $UNITS * $pumpzone_new_zone2; $current_pumpzone = $UNITS * $pumpzone_current_zone2; } if ($PUMPZONE == "3") { $newrate_pumpzone = $UNITS * $pumpzone_new_zone3; $current_pumpzone = $UNITS * $pumpzone_current_zone3; } if ($current_tier1>0){ $diff_tier1 = $newrate_tier1 - $current_tier1; $percent_tier1 = ($diff_tier1 / $current_tier1) * 100; } if ($current_tier2>0) { $diff_tier2 = $newrate_tier2 - $current_tier2; $percent_tier2 = ($diff_tier2 / $current_tier2) * 100; } if ($current_tier3>0) { $diff_tier3 = $newrate_tier3 - $current_tier3; $percent_tier3 = ($diff_tier3 / $current_tier3) * 100; } $diff_pumpzone = $newrate_pumpzone - $current_pumpzone; $total_new = $newrate_tier1 + $newrate_tier2 + $newrate_tier3 + $newrate_pumpzone; $total_current = $current_tier1 + $current_tier2 + $current_tier3 + $current_pumpzone; $total_diff = $diff_tier1 + $diff_tier2 + $diff_tier3 + $diff_pumpzone; if ($total_percent>0) { $total_percent = ($total_diff / $total_current) * 100; } if ($current_pumpzone>0) { $percent_pumpzone = ($diff_pumpzone / $current_pumpzone) * 100; } if ($diff_pumpzone<=0) { $current_pumpzone=0; $percent_pumpzone=0; } if ($_POST['UNITS']>0 && $_POST['PUMPZONE']>0 && $_POST['METERSIZE']>0) { $baserate_diff = $baserate_new - $baserate_current; $baserate_percent = ($baserate_diff / $baserate_current) * 100; $monthly_new = $total_new + $baserate_new; $monthly_current = $total_current + $baserate_current; $monthly_diff = $total_diff + $baserate_diff; $monthly_percent = ($monthly_diff / $monthly_current) * 100; } else { $baserate_new = ''; $baserate_current = ''; } if ($CLASS == "R") {$CLASS = "Residential";} if ($CLASS == "M") {$CLASS = "Multi-Family";} if ($CLASS == "C") {$CLASS = "COMM, IND., GOV, IRR";} if ($CLASS == "RC") {$CLASS = "Recycled";} ?> <body> <table> <tr> <td> <table> <tr> <td style="background-color:#9eb3cb !important;">Estimated Monthly Bill</td> <td style="background-color:#9eb3cb !important;">New Rate</td> <td style="background-color:#9eb3cb !important;">Current Rate</td> <td style="background-color:#9eb3cb !important;">Difference</td> <td style="background-color:#9eb3cb !important;">%</td> </tr> <tr> <td>Tier I (0-12)</td> <td align=right><? if ($newrate_tier1>0){ echo"$"; echo number_format($newrate_tier1,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($current_tier1>0){ echo"$"; echo number_format($current_tier1,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($diff_tier1>0){ echo"$"; echo number_format($diff_tier1,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($percent_tier1>0){ echo number_format($percent_tier1,2,'.',',');echo"%"; } else {echo"-";} ?></td> </tr> <tr> <td>Tier II (13-39)</td> <td align=right><? if ($newrate_tier2>0){ echo"$"; echo number_format($newrate_tier2,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($current_tier2>0){ echo"$"; echo number_format($current_tier2,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($diff_tier2>0){ echo"$"; echo number_format($diff_tier2,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($percent_tier2>0){ echo number_format($percent_tier21,2,'.',',');echo"%"; } else {echo"-";} ?></td> <tr> <td >Tier III (40+)</td> <td align=right><? if ($newrate_tier3>0){ echo"$"; echo number_format($newrate_tier3,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($current_tier3>0){ echo"$"; echo number_format($current_tier3,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($diff_tier3>0){ echo"$"; echo number_format($diff_tier3,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($percent_tier3>0){ echo number_format($percent_tier3,2,'.',',');echo"%"; } else {echo"-";} ?></td> </tr> <tr> <td>Pump Zone</td> <td align=right><? if ($newrate_pumpzone>0){ echo"$"; echo number_format($newrate_pumpzone,2,'.',',');} else {$newrate_pumpzone='-';} ?></td> <td align=right><? if ($current_pumpzone){ echo"$"; echo number_format($current_pumpzone,2,'.',',');} else {$current_pumpzone='-';} ?></td> <td align=right><? if ($diff_pumpzone>0){ echo"$"; echo number_format($diff_pumpzone,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($percent_pumpzone>0){ echo number_format($percent_pumpzone,2,'.',',');echo"%"; } else {echo"-";} ?></td> </tr> <tr> <td>Total Commodity Charges</td> <td align=right><? if ($total_new>0){ echo"$"; echo number_format($total_new,2,'.',',');} else {$total_new='-';} ?></td> <td align=right><? if ($total_current>0){ echo"$"; echo number_format($total_current,2,'.',',');} else {$total_current='-';} ?></td> <td align=right><? if ($total_diff>0){ echo"$"; echo number_format($total_diff,2,'.',',');} else {$total_diff='-';} ?></td> <td align=right><? if ($total_percent>0){ echo number_format($total_percent,2,'.',',');echo"%"; } else {$total_percent='-';} ?></td> </tr> <tr> <td>Base Rate</td> <td align=right><? if ($baserate_new>0){ echo"$"; echo number_format($baserate_new,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($baserate_current>0){ echo"$"; echo number_format($baserate_current,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($baserate_diff>0){ echo"$"; echo number_format($baserate_diff,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($baserate_percent>0){ echo number_format($baserate_percent,2,'.',',');echo"%"; } else {echo"-";} ?></td> </tr> <tr> <td>Total Month Charges</td> <td align=right><? if ($monthly_new>0){ echo"$"; echo number_format($monthly_new,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($monthly_current>0){ echo"$"; echo number_format($monthly_current,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($monthly_diff>0){ echo"$"; echo number_format($monthly_diff,2,'.',',');} else {echo"-";} ?></td> <td align=right><? if ($monthly_percent>0){ echo number_format($monthly_percent,2,'.',',');echo"%"; } else {echo"-";} ?></td> </tr> </table> </td> </tr> </table>
This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches
Archived branches
Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
- 2020-03-21 RFC: Is_Literal - declined
- 2020-12-04 Enumerations - included in PHP 8.1
- 2018-06-15 Typed Properties v2 - implemented in PHP 7.4
- 2016-08-12 Object typehint - included in PHP 7.2
- 2016-08-14 Arrow functions - withdrawn
- 2016-05-29 array_change_keys() - withdrawn
- 2016-04-19 Lexical scope support for anonymous classes - suspended
- 2016-04-17 Functional Interfaces - declined
- 2016-03-16 Typed Properties - superseded in favor of Typed Properties 2.0
- 2015-08-27 Callable Prototypes - declined
- 2015-05-01 Short Closures - declined / withdrawn in favor of Arrow Functions
- 2015-02-18 Scalar type hints v5 - included in PHP 7
- 2015-02-14 Union Types - declined
- 2013-09-22 Anonymous classes - included in PHP 7