3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once('config.php'); // terima data dari halaman index.php $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); $email = mysql_real_escape_string($_POST['email']); $fullname = mysql_real_escape_string($_POST['fullname']); $role = 'member'; // variabel untuk settingan default level yang mendaftar // simpan data ke database $query = mysql_query("insert into users values('', '$username', '$password', '$email', '$fullname', '$role')"); if ($query) { // jika berhasil menyimpan header('location: index.php?msg=success'); } else { // jika gagal menyimpan header('location: index.php?msg=failed'); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include_once(): open_basedir restriction in effect. File(config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/hb6ni on line 2 Warning: include_once(config.php): Failed to open stream: Operation not permitted in /in/hb6ni on line 2 Warning: include_once(): Failed opening 'config.php' for inclusion (include_path='.:') in /in/hb6ni on line 2 Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /in/hb6ni:5 Stack trace: #0 {main} thrown in /in/hb6ni on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
61.92 ms | 401 KiB | 8 Q