3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Test; class AWS{ private static $config; public static function setup($config){ if(isset(self::$config)){ throw new Exception("AWS has already been setup."); } self::$config = $config; } } Test\AWS::setup('foo');
based on qOS14
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Test\Test\AWS' not found in /in/6lfiN:17 Stack trace: #0 {main} thrown in /in/6lfiN on line 17
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Class 'Test\Test\AWS' not found in /in/6lfiN on line 17
Process exited with code 255.