PHP-CLI program that given an infix arithmetic expression, outputs a prefix version (Polish Notation)