3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php public function access() { // @TODO fix $this->view->render require 'application/views/partials/header.php'; require 'application/views/user/access.php'; require 'application/views/partials/footer.php'; } public function create() { $user_model = $this->loadModel('UserModel'); //check if we have POST data to create a new user if (isset($_POST["submit_add_user"])) { //@TODO Add password encryption, prefered BCrypt. $user_model->create($_POST["fornavn"], $_POST["efternavn"], $_POST["sted"], $_POST["password"], $_POST["email"]); } // where to go after user has been added header('location: ' . URL . 'user/access'); }
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/hDYbI on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PUBLIC in /in/hDYbI on line 2
Process exited with code 255.