3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class InvalidPage extends Exception {} class PageNotAnInteger extends InvalidPage {} class EmptyPage extends InvalidPage {} try { throw new EmptyPage; } catch(PageNotAnInteger $e) { echo get_class($e); }
Output for 7.0.0 - 7.2.11
Fatal error: Uncaught EmptyPage in /in/lCODK:8 Stack trace: #0 {main} thrown in /in/lCODK on line 8
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught exception 'EmptyPage' with message '' in /in/lCODK:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.1 - 3.21.3
Fatal error: Uncaught exception 'EmptyPage' with message '' in /in/lCODK:8 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.0.0 - 5.0.2, 5.0.5 - 5.6.38
Fatal error: Uncaught exception 'EmptyPage' in /in/lCODK:8 Stack trace: #0 {main} thrown in /in/lCODK on line 8
Process exited with code 255.
Output for 5.0.3 - 5.0.4
Fatal error: Uncaught exception 'EmptyPage' in /in/lCODK:8 Stack trace: #0 /in/lCODK(8): unknown() #1 {main} thrown in /in/lCODK on line 8
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/lCODK on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/lCODK on line 7
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/lCODK on line 7
Process exited with code 255.