Optimized code for reverse address Php app.