3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller{ public static function pieces(){ $p=explode("/", $_SERVER['REQUEST_URI']);//mag leeg zijn $p=array_filter($p); $pieces=array_values($p); new static($pieces);} final private function __construct($pieces){ $this->_construct(); $this->inlog = new UserLogin; $this->mysqli = new mysqli(HOST, USER, PASSWORD, DATABASE); $this->inlog->sec_session_start();} protected function _construct(){}} Controller::pieces(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "REQUEST_URI" in /in/cKWuN on line 5 Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /in/cKWuN on line 5 Fatal error: Uncaught Error: Class "UserLogin" not found in /in/cKWuN:12 Stack trace: #0 /in/cKWuN(8): Controller->__construct(Array) #1 /in/cKWuN(19): Controller::pieces() #2 {main} thrown in /in/cKWuN on line 12
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:
39.19 ms | 401 KiB | 8 Q