3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { function bar(&$bar) {} } $a = new Foo; $a->bar(1);
based on TZMZO
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /in/ErZWH:8 Stack trace: #0 {main} thrown in /in/ErZWH on line 8
Process exited with code 255.
Output for 4.3.2 - 5.6.28
Fatal error: Cannot pass parameter 1 by reference in /in/ErZWH on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot pass parameter 1 by reference in /in/ErZWH on line 8