3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! function iterator_compose() { foreach (array_reverse(func_get_args()) as $it) { if (is_callable($it)) { $prev = $it; } } } function chunk(\Traversable $it, $chunkSize) { $chunk = []; } foreach (chunk(range(0, 128), 32) as $c) { var_export($c); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: chunk(): Argument #1 ($it) must be of type Traversable, array given, called in /in/EUook on line 20 and defined in /in/EUook:13 Stack trace: #0 /in/EUook(20): chunk(Array, 32) #1 {main} thrown in /in/EUook on line 13
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:
40.16 ms | 401 KiB | 8 Q