3v4l.org

run code in 300+ PHP versions simultaneously
<?php class IterableClass implements ArrayAccess { private array $data = []; public function offsetExists(mixed $offset): bool { return true; } public function offsetGet(mixed $offset): mixed { return $this->data[$offset]; } public function offsetSet(mixed $offset, mixed $value): void { } public function offsetUnset(mixed $offset): void { } } $seasonsData = [new IterableClass(), new IterableClass()]; foreach ($seasonsData as $s) { echo isset($s['priceweek']) ? $s['priceweek'] : ''; }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "priceweek" in /in/CDed5 on line 14 Warning: Undefined array key "priceweek" in /in/CDed5 on line 14

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.47 ms | 405 KiB | 5 Q