nope.php
:
<?php
echo "some undefined variable" + $undefined_shit;
echo "please don't print";
php nope.php
Output:
PHP Notice: Undefined variable: undefined_shit in /Users/gableroux/nope.php on line 3
Notice: Undefined variable: undefined_shit in /Users/gableroux/nope.php on line 3
0please don't print
php --version
PHP 7.0.27 (cli) (built: Jan 5 2018 12:26:39) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
Also it seems that built-in debug log is depricated in php!