3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class UserManager { function foo() { SiteUser::getUniqueUsernameFromDetails(); } } $um = new UserManager(); $um->foo();
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'SiteUser' not found in /in/KBi2j:6 Stack trace: #0 /in/KBi2j(11): UserManager->foo() #1 {main} thrown in /in/KBi2j on line 6
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'SiteUser' not found in /in/KBi2j on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'siteuser' in /in/KBi2j on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'siteuser' in /in/KBi2j on line 6