3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Changement de classe à la volée class A { function change() { $this = new B(); } } class B { }
Output for 5.0.0 - 5.4.26
Fatal error: Cannot re-assign $this in /in/l7kTn on line 8
Process exited with code 255.
Output for 4.3.0 - 4.4.9