3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = new SplDoublyLinkedList(); $list->push('a'); $list->push('b'); $list->push('c'); $list->push('d'); $list->next(); $list->next(); $list->next(); $list->next(); var_dump($list->current());

preferences:
39.15 ms | 402 KiB | 5 Q