3v4l.org

run code in 300+ PHP versions simultaneously
<?php class WsseCredentials { public function __construct($credentials = array()) { $fields = array('username', 'digest', 'nonce','created'); foreach($fields as $key){ $this->{$key} = $credentials[$key]; } } public function getUsername(){ return $this->username; } public function getDigest(){ return $this->username; } public function getNonce(){ return $this->username; } public function getCreated(){ return $this->username; } } $foo = new WsseCredentials();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "username" in /in/QWtWB on line 7 Deprecated: Creation of dynamic property WsseCredentials::$username is deprecated in /in/QWtWB on line 7 Warning: Undefined array key "digest" in /in/QWtWB on line 7 Deprecated: Creation of dynamic property WsseCredentials::$digest is deprecated in /in/QWtWB on line 7 Warning: Undefined array key "nonce" in /in/QWtWB on line 7 Deprecated: Creation of dynamic property WsseCredentials::$nonce is deprecated in /in/QWtWB on line 7 Warning: Undefined array key "created" in /in/QWtWB on line 7 Deprecated: Creation of dynamic property WsseCredentials::$created is deprecated in /in/QWtWB on line 7

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:
43.18 ms | 402 KiB | 8 Q