3v4l.org

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