You can enable errors to display in Php using:
error_reporting(E_ALL); ini_set('display_errors', 1);
For reference on how to display errors and warnings: https://www.codingdynasty.com/php/print-errors-and-warnings-in-php/