some php code for slim evaluation