3v4l.org

run code in 300+ PHP versions simultaneously
<?php include 'dbconfig.php'; $conn = $dbConnection; $query = " UPDATE Events SET title=:title, resource=:resource, start_event=:start_event, end_event=:end_event WHERE id=:id "; $statement = $conn->prepare($query); $start = date_create_from_format('D M d Y H:i:s \G\M\TO+', $_POST['start'])->format('Y-m-d H:i:s'); $end = date_create_from_format('D M d Y H:i:s \G\M\TO+', $_POST['end'])->format('Y-m-d H:i:s'); $statement->execute(array( ':id' => $_POST['id'], ':title' => $_POST['title'], ':resource' => $_POST['resource'], ':start_event' => $start, ':end_event' => $end ) ); ?> Error: [Sat Mar 30 02:47:19.549392 2019] [php7:error] [pid 25123] [client ***] PHP Fatal error: Uncaught Error: Call to a member function format() on boolean in /var/app/current/insert.php:14 Stack trace:\n#0 {main}\n thrown in /var/app/current/insert.php on line 14, referer: ***.us-west-2.elasticbeanstalk.com/
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(dbconfig.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/kUDsJ on line 2 Warning: include(dbconfig.php): Failed to open stream: Operation not permitted in /in/kUDsJ on line 2 Warning: include(): Failed opening 'dbconfig.php' for inclusion (include_path='.:') in /in/kUDsJ on line 2 Warning: Undefined variable $dbConnection in /in/kUDsJ on line 4 Fatal error: Uncaught Error: Call to a member function prepare() on null in /in/kUDsJ:10 Stack trace: #0 {main} thrown in /in/kUDsJ on line 10
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:
65.7 ms | 406 KiB | 5 Q