PHP port of friedbananachillisandwich