3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $q = array(); $x=0; function a(){ global $q; $q[]="a() was called"; return 1; } function &b(){ global $q; global $x; $q[]="b() was called"; return $x; } echo a()+ ++b(); echo implode(",", $q);
Output for 5.3.0 - 5.4.11
Fatal error: Can't use function return value in write context in /in/2Xi5r on line 15
Process exited with code 255.