3v4l.org

run code in 300+ PHP versions simultaneously
<?php $iterable = new stdClass; is_array($iterable) ? $iterable : iterator_to_array($iterable);
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: Uncaught TypeError: iterator_to_array(): Argument #1 ($iterator) must be of type Traversable|array, stdClass given in /in/92r6a:4 Stack trace: #0 /in/92r6a(4): iterator_to_array(Object(stdClass)) #1 {main} thrown in /in/92r6a on line 4
Process exited with code 255.

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