3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(get_declared_interfaces());
Output for 7.0.0 - 7.1.0
array(18) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(9) "Throwable" [6]=> string(17) "DateTimeInterface" [7]=> string(16) "JsonSerializable" [8]=> string(17) "RecursiveIterator" [9]=> string(13) "OuterIterator" [10]=> string(9) "Countable" [11]=> string(16) "SeekableIterator" [12]=> string(11) "SplObserver" [13]=> string(10) "SplSubject" [14]=> string(23) "SessionHandlerInterface" [15]=> string(18) "SessionIdInterface" [16]=> string(38) "SessionUpdateTimestampHandlerInterface" [17]=> string(9) "Reflector" }
Output for 5.5.1 - 5.6.28
array(16) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(17) "DateTimeInterface" [6]=> string(16) "JsonSerializable" [7]=> string(17) "RecursiveIterator" [8]=> string(13) "OuterIterator" [9]=> string(9) "Countable" [10]=> string(16) "SeekableIterator" [11]=> string(11) "SplObserver" [12]=> string(10) "SplSubject" [13]=> string(23) "SessionHandlerInterface" [14]=> string(18) "SessionIdInterface" [15]=> string(9) "Reflector" }
Output for 5.5.0
array(15) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(17) "DateTimeInterface" [6]=> string(16) "JsonSerializable" [7]=> string(17) "RecursiveIterator" [8]=> string(13) "OuterIterator" [9]=> string(9) "Countable" [10]=> string(16) "SeekableIterator" [11]=> string(11) "SplObserver" [12]=> string(10) "SplSubject" [13]=> string(23) "SessionHandlerInterface" [14]=> string(9) "Reflector" }
Output for 5.4.0 - 5.4.45
array(14) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(16) "JsonSerializable" [6]=> string(17) "RecursiveIterator" [7]=> string(13) "OuterIterator" [8]=> string(9) "Countable" [9]=> string(16) "SeekableIterator" [10]=> string(11) "SplObserver" [11]=> string(10) "SplSubject" [12]=> string(23) "SessionHandlerInterface" [13]=> string(9) "Reflector" }
Output for 5.2.2 - 5.3.29
array(12) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(17) "RecursiveIterator" [6]=> string(13) "OuterIterator" [7]=> string(9) "Countable" [8]=> string(16) "SeekableIterator" [9]=> string(11) "SplObserver" [10]=> string(10) "SplSubject" [11]=> string(9) "Reflector" }
Output for 5.1.3 - 5.2.1
array(12) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(17) "RecursiveIterator" [6]=> string(13) "OuterIterator" [7]=> string(16) "SeekableIterator" [8]=> string(9) "Countable" [9]=> string(11) "SplObserver" [10]=> string(10) "SplSubject" [11]=> string(9) "Reflector" }
Output for 5.1.2
array(12) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(17) "RecursiveIterator" [6]=> string(16) "SeekableIterator" [7]=> string(13) "OuterIterator" [8]=> string(9) "Countable" [9]=> string(11) "SplObserver" [10]=> string(10) "SplSubject" [11]=> string(9) "Reflector" }
Output for 5.1.0 - 5.1.1
array(12) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(12) "Serializable" [5]=> string(9) "Reflector" [6]=> string(17) "RecursiveIterator" [7]=> string(16) "SeekableIterator" [8]=> string(13) "OuterIterator" [9]=> string(9) "Countable" [10]=> string(11) "SplObserver" [11]=> string(10) "SplSubject" }
Output for 5.0.0 - 5.0.5
array(7) { [0]=> string(11) "Traversable" [1]=> string(17) "IteratorAggregate" [2]=> string(8) "Iterator" [3]=> string(11) "ArrayAccess" [4]=> string(9) "Reflector" [5]=> string(17) "RecursiveIterator" [6]=> string(16) "SeekableIterator" }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: get_declared_interfaces() in /in/GQYd8 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: get_declared_interfaces() in /in/GQYd8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: get_declared_interfaces() in /in/GQYd8 on line 3