3v4l.org

run code in 300+ PHP versions simultaneously
<?php class EnumConstantMetadata { private $name; private $readableValue; private $value; public function __construct($name, $value, $readableValue) { $this->name = $name; $this->value = $value; $this->readableValue = $readableValue; } public function getName() { return $this->name; } public function getReadableValue() { return $this->readableValue; } public function getValue() { return $this->value; } } var_dump(serialize(new EnumConstantMetadata('name', 'value', 'readableValue'))); var_dump(serialize(array('name', 'value', 'readableValue')));
Output for git.master, git.master_jit, rfc.property-hooks
string(188) "O:20:"EnumConstantMetadata":3:{s:26:"EnumConstantMetadataname";s:4:"name";s:35:"EnumConstantMetadatareadableValue";s:13:"readableValue";s:27:"EnumConstantMetadatavalue";s:5:"value";}" string(62) "a:3:{i:0;s:4:"name";i:1;s:5:"value";i:2;s:13:"readableValue";}"

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.04 ms | 402 KiB | 8 Q