run code in 300+ PHP versions simultaneously
<?php $array = range(0, 1440); $it = new CallbackFilterIterator( new ArrayIterator($array), function($value, $key) { return 0 === $key % 30; } ); foreach ($it as $value) { var_dump($value); }
Output for git.master, git.master_jit
int(0) int(30) int(60) int(90) int(120) int(150) int(180) int(210) int(240) int(270) int(300) int(330) int(360) int(390) int(420) int(450) int(480) int(510) int(540) int(570) int(600) int(630) int(660) int(690) int(720) int(750) int(780) int(810) int(840) int(870) int(900) int(930) int(960) int(990) int(1020) int(1050) int(1080) int(1110) int(1140) int(1170) int(1200) int(1230) int(1260) int(1290) int(1320) int(1350) int(1380) int(1410) int(1440)

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

11.58 ms | 409 KiB | 5 Q