3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $foo = array(new Exception()); $foo = &current($foo); $bar = array(35); $bar = &current($bar);
Output for 7.0.0 - 7.1.0
Notice: Only variables should be assigned by reference in /in/651IW on line 4 Notice: Only variables should be assigned by reference in /in/651IW on line 6
Output for 5.0.0 - 5.4.45, hhvm-3.10.0 - 3.12.0
Output for 5.5.0 - 5.6.28
Strict Standards: Only variables should be assigned by reference in /in/651IW on line 4 Strict Standards: Only variables should be assigned by reference in /in/651IW on line 6
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: exception in <b>/in/651IW</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: exception in <b>/in/651IW</b> on line <b>3</b><br />