New self vs. new static
问题 I am converting a PHP 5.3 library to work on PHP 5.2. The main thing standing in my way is the use of late static binding like return new static($options); , if I convert this to return new self($options) will I get the same results? What is the difference between new self and new static ? 回答1: will I get the same results? Not really. I don't know of a workaround for PHP 5.2, though. What is the difference between new self and new static ? self refers to the same class in which the new