3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_startup_errors', 1); ini_set('display_errors', 1); error_reporting(-1); include 'dbconfig.php'; session_start(); if(!isset($_SESSION['user_session'])){ echo 'you are not authorised to view the page'; }else if(isset($_SESSION['user_session'])){ $stmt = $db_con->prepare('SELECT * FROM tbl_users WHERE user_id=:id_op'); $stmt->execute(array(':id_op'=>$_SESSION['user_session'])); $row=$stmt->fetch(PDO::FETCH_ASSOC); echo json_encode($row); }
Output for rfc.property-hooks, git.master, git.master_jit
Warning: include(): open_basedir restriction in effect. File(dbconfig.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/ck3jH on line 7 Warning: include(dbconfig.php): Failed to open stream: Operation not permitted in /in/ck3jH on line 7 Warning: include(): Failed opening 'dbconfig.php' for inclusion (include_path='.:') in /in/ck3jH on line 7 Warning: session_start(): Session cannot be started after headers have already been sent in /in/ck3jH on line 9 you are not authorised to view the page

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:
101.65 ms | 2145 KiB | 4 Q