OK this is getting very frustrating. MAMP used to display errors but then stopped. I decided to do a fresh install of it as I couldn't figure it out. I check my PHP version, running 5.4.4 and go to that folder and change the php.ini to this:
error_reporting = E_ALL
display_errors = On
error_reporting(E_ALL); ini_set('display_errors', 'on');
MAMP sets up a few different
php.ini files for the server, the client etc. Check in your
php.ini actually is read. Looks like you're editing the wrong one.