3v4l.org

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); }

preferences:
40.46 ms | 402 KiB | 5 Q