Reactivate php_sim in Scrutinizer and fix some minor issues