3v4l.org

run code in 300+ PHP versions simultaneously
<?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'); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.280.0150.06212.36
5.4.270.0140.04712.36
5.4.260.0090.06012.36
5.4.250.0130.05512.36
5.4.240.0090.05712.36
5.4.230.0070.05812.36
5.4.220.0120.04012.36
5.4.210.0080.05412.36
5.4.200.0050.04912.35
5.4.190.0090.03812.35
5.4.180.0060.03812.35
5.4.170.0050.04412.36
5.4.160.0060.03712.35
5.4.150.0110.03912.35
5.4.140.0100.03512.04
5.4.130.0090.03912.02
5.4.120.0050.04211.99
5.4.110.0140.06611.98
5.4.100.0140.05511.98
5.4.90.0090.05111.98
5.4.80.0090.04811.98
5.4.70.0130.03911.98
5.4.60.0070.04311.98
5.4.50.0140.05111.98
5.4.40.0120.04711.97
5.4.30.0100.05911.96
5.4.20.0130.04611.96
5.4.10.0070.04911.96
5.4.00.0080.06011.46
5.3.280.0100.04912.71
5.3.270.0040.04412.72
5.3.260.0070.04412.72
5.3.250.0100.03712.71
5.3.240.0110.05212.72
5.3.230.0110.05812.71
5.3.220.0100.05312.68
5.3.210.0070.04512.68
5.3.200.0090.03812.68
5.3.190.0070.03912.67
5.3.180.0090.03812.68
5.3.170.0100.03912.67
5.3.160.0090.04312.67
5.3.150.0060.04212.67
5.3.140.0120.05112.66
5.3.130.0100.04812.66
5.3.120.0070.04412.66
5.3.110.0080.05612.65
5.3.100.0100.04112.12
5.3.90.0060.04912.08
5.3.80.0070.03912.08
5.3.70.0090.03512.08
5.3.60.0120.03612.07
5.3.50.0060.03812.00
5.3.40.0080.03712.00
5.3.30.0070.03711.94
5.3.20.0050.03911.70
5.3.10.0090.03411.67
5.3.00.0070.04011.66

preferences:
137.44 ms | 1394 KiB | 7 Q