What are the changes in variable handling in PHP 5, and are there any variables that have been renamed or deprecated?

In PHP 5, the handling of variables has changed in a few ways. One significant change is the introduction of the 'new' keyword for object instantiation, replacing the use of the class name as a function. Additionally, the 'public', 'protected', and 'private' access modifiers were introduced for class properties. Some variables have been renamed or deprecated, such as $HTTP_POST_VARS being replaced by $_POST.

// Using the 'new' keyword for object instantiation
class MyClass {
    public $property;

    public function __construct($value) {
        $this->property = $value;
    }
}

$obj = new MyClass('Hello');

// Accessing POST data using $_POST
$name = $_POST['name'];