What are the differences in PHP usage between PHP4 and PHP5 based on the provided code snippet?

In PHP4, the code snippet uses the "var" keyword to declare class properties, which is deprecated in PHP5 and removed in later versions. To fix this issue, we need to replace the "var" keyword with "public", "private", or "protected" depending on the visibility of the property.

class MyClass {
    public $myProperty;
    
    public function __construct($value) {
        $this->myProperty = $value;
    }
}