3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Process{ protected $valuationEstimatesArray; function __construct(){ $this->setValuationEstiamtesArray(); } function setValuationEstiamtesArray(){ $this->valuationEstimatesArray[1]['minPropertyValue'] = 100; $this->valuationEstimatesArray[1]['maxPropertyValue'] = 200; $this->valuationEstimatesArray[1]['valuationEstimate'] = 50; $this->valuationEstimatesArray[2]['minPropertyValue'] = 200; $this->valuationEstimatesArray[2]['maxPropertyValue'] = 300; $this->valuationEstimatesArray[2]['valuationEstimate'] = 100; $this->valuationEstimatesArray[3]['minPropertyValue'] = 300; $this->valuationEstimatesArray[3]['maxPropertyValue'] = 400; $this->valuationEstimatesArray[3]['valuationEstimate'] = 200; } function outputValues($search){ foreach($this->valuationEstimatesArray as $id=>$array){ if((($array['minPropertyValue'] - $search)< 0) AND (($array['maxPropertyValue'] - $search) > 0))) echo $array['valuationEstimate']; } } } } $proc = new Process; $proc->outputValues(150);
Output for 5.3.0 - 5.4.30
Parse error: syntax error, unexpected ')' in /in/GmvkO on line 29
Process exited with code 255.