3v4l.org

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