3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dll = new SplDoublyLinkedList(); $dll->add();
Output for 5.5.24 - 5.6.21, 7.0.0 - 7.1.0
Warning: SplDoublyLinkedList::add() expects exactly 2 parameters, 0 given in /in/o2QKi on line 3
Output for hhvm-3.10.0 - 3.12.0
Warning: add() expects exactly 2 parameters, 0 given in /in/o2QKi on line 3 Notice: Undefined variable: index in /in/o2QKi on line 3 Notice: Undefined variable: index in /in/o2QKi on line 3 Fatal error: Uncaught exception 'OutOfRangeException' with message 'Offset invalid or out of range' in /in/o2QKi:3 Stack trace: #0 /in/o2QKi(3): SplDoublyLinkedList->add() #1 {main}
Process exited with code 255.
Output for 5.3.0 - 5.4.45
Fatal error: Call to undefined method SplDoublyLinkedList::add() in /in/o2QKi on line 3
Process exited with code 255.
Output for 5.0.0 - 5.2.17
Fatal error: Class 'SplDoublyLinkedList' not found in /in/o2QKi on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: spldoublylinkedlist in /in/o2QKi on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: spldoublylinkedlist in /in/o2QKi on line 2