3v4l.org

run code in 300+ PHP versions simultaneously
<?php $it = new ArrayIterator(range(1, 5)); $cb = 'hello'; $test = new CallbackFilterIterator($it, $cb);

preferences:
35.83 ms | 402 KiB | 5 Q