3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class User extends Controller { function my__construct($user_model) { include 'application/model/usermodel.php'; } spl_autoload_register('my__construct');
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'spl_autoload_register' (T_STRING), expecting function (T_FUNCTION) in /in/IENSK on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /in/IENSK on line 9
Process exited with code 255.