3v4l.org

run code in 300+ PHP versions simultaneously
<?php class db { public $default; function __construct() { $default = array( 'host' => 'host s;pace', 'database' => 'd', 'login' => 'l'); } } $db = new db(); $p = 'password'; echo <<<EOD DB_HOST="{$db->default['host']}" DB_NAME="{$db->default['database']}" DB_USER="{$db->default['login']}" DB_PASS={$p} EOD;
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/LYcFn on line 11 Warning: Trying to access array offset on value of type null in /in/LYcFn on line 12 Warning: Trying to access array offset on value of type null in /in/LYcFn on line 13 DB_HOST="" DB_NAME="" DB_USER="" DB_PASS=password
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/LYcFn on line 11 Warning: Trying to access array offset on null in /in/LYcFn on line 12 Warning: Trying to access array offset on null in /in/LYcFn on line 13 DB_HOST="" DB_NAME="" DB_USER="" DB_PASS=password

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:
36.99 ms | 401 KiB | 8 Q