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:
37.82 ms | 408 KiB | 5 Q