3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $this = new Object(); $this->func = function($a) { echo "--{$a}--"; }; $this->func("hi"); $func = $this->func; $func("bye");
Output for 5.3.0 - 5.4.23
Fatal error: Cannot re-assign $this in /in/SpQtv on line 2
Process exited with code 255.