How can PHP be started in a verbose/debug mode to identify which PHP script and line is causing a segmentation fault?

To identify which PHP script and line is causing a segmentation fault, you can start PHP in a verbose/debug mode by using the "-d" flag with the "display_errors" and "error_reporting" directives set to show all errors and warnings. This will provide more detailed information about the error, including the script and line number where the segmentation fault occurred.

php -d display_errors=1 -d error_reporting=E_ALL script.php