3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class X { function y () { var_dump($this); $that = $this; $this = 3; var_dump($this); $that->z(); } function z() { var_dump($this); } }
Output for 5.3.0 - 5.4.17
Fatal error: Cannot re-assign $this in /in/H0eM1 on line 6
Process exited with code 255.