What are the steps to ensure that PHP is running correctly after upgrading to a new version?

After upgrading to a new version of PHP, it is important to ensure that PHP is running correctly by checking the PHP configuration settings and testing a simple PHP script. This can be done by creating a phpinfo.php file with the following code:

```php
<?php
phpinfo();
?>
```

After creating the phpinfo.php file, access it through a web browser (e.g., http://example.com/phpinfo.php) to view the PHP configuration settings and verify that PHP is running correctly with the new version.