3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo{ public $a; public function __construct( $this->a = 'a'; ); } $foo = new Foo(); $newFoo = unserialize(serialize($foo)); $newFoo->a();
Output for 5.3.0 - 5.4.25
Fatal error: Cannot re-assign $this in /in/rf4r9 on line 8
Process exited with code 255.