3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function b() { yield 'hello'; yield 'hello'; } function a() { throw new Exception(); return b(); } var_dump(a());
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception in /in/M0REW:9 Stack trace: #0 /in/M0REW(14): a() #1 {main} thrown in /in/M0REW on line 9
Process exited with code 255.
Output for 5.5.24 - 5.6.28
Fatal error: Uncaught exception 'Exception' in /in/M0REW:9 Stack trace: #0 /in/M0REW(14): a() #1 {main} thrown in /in/M0REW on line 9
Process exited with code 255.
Output for 5.4.12 - 5.4.45
Parse error: syntax error, unexpected ''hello'' (T_CONSTANT_ENCAPSED_STRING) in /in/M0REW on line 4
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/M0REW on line 4
Process exited with code 255.