3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Test { public function __construct() { $this->callback(&$this); } public function callback() { } } new Test();
Output for 5.4.0 - 5.4.10
Fatal error: Call-time pass-by-reference has been removed in /in/PBFQ8 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Deprecated: Call-time pass-by-reference has been deprecated in /in/PBFQ8 on line 6