3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MproObject implements IteratorAggregate, ArrayAccess, Serializable, Countable { /** * Returns whether the requested key exists * * @param mixed $key * @return bool */ public function __isset($key) { } /** * Sets the value at the specified key to value * * @param mixed $key * @param mixed $value * @return void */ public function __set($key, $value) { } /** * Unsets the value at the specified key * * @param mixed $key * @return void */ public function __unset($key) { } /** * Returns the value at the specified key by reference * * @param mixed $key * @return mixed */ public function &__get($key) { } /** * Appends the value * * @param mixed $value * @return void */ public function append($value) { } /** * Sort the entries by value * * @return void */ public function asort() { } /** * Get the number of public properties in the ArrayObject * * @return int */ public function count() { } /** * Exchange the array for another one. * * @param array|ArrayObject $data * @return array */ public function exchangeArray($data) { } /** * Creates a copy of the ArrayObject. * * @return array */ public function getArrayCopy() { } /** * Gets the behavior flags. * * @return int */ public function getFlags() { } /** * Create a new iterator from an ArrayObject instance * * @return \Iterator */ public function getIterator() { } /** * Gets the iterator classname for the ArrayObject. * * @return string */ public function getIteratorClass() { } /** * Sort the entries by key * * @return void */ public function ksort() { } /** * Sort an array using a case insensitive "natural order" algorithm * * @return void */ public function natcasesort() { } /** * Sort entries using a "natural order" algorithm * * @return void */ public function natsort() { } /** * Returns whether the requested key exists * * @param mixed $key * @return bool */ public function offsetExists($key) { } /** * Returns the value at the specified key * * @param mixed $key * @return mixed */ public function &offsetGet($key) { } /** * Sets the value at the specified key to value * * @param mixed $key * @param mixed $value * @return void */ public function offsetSet($key, $value) { } /** * Unsets the value at the specified key * * @param mixed $key * @return void */ public function offsetUnset($key) { } /** * Serialize an ArrayObject * * @return string */ public function serialize() { } /** * Sets the behavior flags * * @param int $flags * @return void */ public function setFlags($flags) { } /** * Sets the iterator classname for the ArrayObject * * @param string $class * @return void */ public function setIteratorClass($class) { } /** * Sort the entries with a user-defined comparison function and maintain key association * * @param callable $function * @return void */ public function uasort($function) { } /** * Sort the entries by keys using a user-defined comparison function * * @param callable $function * @return void */ public function uksort($function) { } /** * Unserialize an ArrayObject * * @param string $data * @return void */ public function unserialize($data) { } }
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Return type of MproObject::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/fHRQn on line 115 Deprecated: Return type of MproObject::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/fHRQn on line 161 Deprecated: Return type of & MproObject::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/fHRQn on line 171 Deprecated: Return type of MproObject::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/fHRQn on line 183 Deprecated: Return type of MproObject::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/fHRQn on line 193 Deprecated: MproObject implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /in/fHRQn on line 3 Deprecated: Return type of MproObject::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/fHRQn on line 77

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:
56.24 ms | 405 KiB | 8 Q