3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(spl_classes());
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(56) { ["AppendIterator"]=> string(14) "AppendIterator" ["ArrayIterator"]=> string(13) "ArrayIterator" ["ArrayObject"]=> string(11) "ArrayObject" ["BadFunctionCallException"]=> string(24) "BadFunctionCallException" ["BadMethodCallException"]=> string(22) "BadMethodCallException" ["CachingIterator"]=> string(15) "CachingIterator" ["CallbackFilterIterator"]=> string(22) "CallbackFilterIterator" ["Countable"]=> string(9) "Countable" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["DomainException"]=> string(15) "DomainException" ["EmptyIterator"]=> string(13) "EmptyIterator" ["FilesystemIterator"]=> string(18) "FilesystemIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["GlobIterator"]=> string(12) "GlobIterator" ["InfiniteIterator"]=> string(16) "InfiniteIterator" ["InvalidArgumentException"]=> string(24) "InvalidArgumentException" ["IteratorIterator"]=> string(16) "IteratorIterator" ["LengthException"]=> string(15) "LengthException" ["LimitIterator"]=> string(13) "LimitIterator" ["LogicException"]=> string(14) "LogicException" ["MultipleIterator"]=> string(16) "MultipleIterator" ["NoRewindIterator"]=> string(16) "NoRewindIterator" ["OuterIterator"]=> string(13) "OuterIterator" ["OutOfBoundsException"]=> string(20) "OutOfBoundsException" ["OutOfRangeException"]=> string(19) "OutOfRangeException" ["OverflowException"]=> string(17) "OverflowException" ["ParentIterator"]=> string(14) "ParentIterator" ["RangeException"]=> string(14) "RangeException" ["RecursiveArrayIterator"]=> string(22) "RecursiveArrayIterator" ["RecursiveCachingIterator"]=> string(24) "RecursiveCachingIterator" ["RecursiveCallbackFilterIterator"]=> string(31) "RecursiveCallbackFilterIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveFilterIterator"]=> string(23) "RecursiveFilterIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["RecursiveRegexIterator"]=> string(22) "RecursiveRegexIterator" ["RecursiveTreeIterator"]=> string(21) "RecursiveTreeIterator" ["RegexIterator"]=> string(13) "RegexIterator" ["RuntimeException"]=> string(16) "RuntimeException" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SplDoublyLinkedList"]=> string(19) "SplDoublyLinkedList" ["SplFileInfo"]=> string(11) "SplFileInfo" ["SplFileObject"]=> string(13) "SplFileObject" ["SplFixedArray"]=> string(13) "SplFixedArray" ["SplHeap"]=> string(7) "SplHeap" ["SplMinHeap"]=> string(10) "SplMinHeap" ["SplMaxHeap"]=> string(10) "SplMaxHeap" ["SplObjectStorage"]=> string(16) "SplObjectStorage" ["SplObserver"]=> string(11) "SplObserver" ["SplPriorityQueue"]=> string(16) "SplPriorityQueue" ["SplQueue"]=> string(8) "SplQueue" ["SplStack"]=> string(8) "SplStack" ["SplSubject"]=> string(10) "SplSubject" ["SplTempFileObject"]=> string(17) "SplTempFileObject" ["UnderflowException"]=> string(18) "UnderflowException" ["UnexpectedValueException"]=> string(24) "UnexpectedValueException" }
Output for 5.3.0 - 5.3.29
array(54) { ["AppendIterator"]=> string(14) "AppendIterator" ["ArrayIterator"]=> string(13) "ArrayIterator" ["ArrayObject"]=> string(11) "ArrayObject" ["BadFunctionCallException"]=> string(24) "BadFunctionCallException" ["BadMethodCallException"]=> string(22) "BadMethodCallException" ["CachingIterator"]=> string(15) "CachingIterator" ["Countable"]=> string(9) "Countable" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["DomainException"]=> string(15) "DomainException" ["EmptyIterator"]=> string(13) "EmptyIterator" ["FilesystemIterator"]=> string(18) "FilesystemIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["GlobIterator"]=> string(12) "GlobIterator" ["InfiniteIterator"]=> string(16) "InfiniteIterator" ["InvalidArgumentException"]=> string(24) "InvalidArgumentException" ["IteratorIterator"]=> string(16) "IteratorIterator" ["LengthException"]=> string(15) "LengthException" ["LimitIterator"]=> string(13) "LimitIterator" ["LogicException"]=> string(14) "LogicException" ["MultipleIterator"]=> string(16) "MultipleIterator" ["NoRewindIterator"]=> string(16) "NoRewindIterator" ["OuterIterator"]=> string(13) "OuterIterator" ["OutOfBoundsException"]=> string(20) "OutOfBoundsException" ["OutOfRangeException"]=> string(19) "OutOfRangeException" ["OverflowException"]=> string(17) "OverflowException" ["ParentIterator"]=> string(14) "ParentIterator" ["RangeException"]=> string(14) "RangeException" ["RecursiveArrayIterator"]=> string(22) "RecursiveArrayIterator" ["RecursiveCachingIterator"]=> string(24) "RecursiveCachingIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveFilterIterator"]=> string(23) "RecursiveFilterIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["RecursiveRegexIterator"]=> string(22) "RecursiveRegexIterator" ["RecursiveTreeIterator"]=> string(21) "RecursiveTreeIterator" ["RegexIterator"]=> string(13) "RegexIterator" ["RuntimeException"]=> string(16) "RuntimeException" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SplDoublyLinkedList"]=> string(19) "SplDoublyLinkedList" ["SplFileInfo"]=> string(11) "SplFileInfo" ["SplFileObject"]=> string(13) "SplFileObject" ["SplFixedArray"]=> string(13) "SplFixedArray" ["SplHeap"]=> string(7) "SplHeap" ["SplMinHeap"]=> string(10) "SplMinHeap" ["SplMaxHeap"]=> string(10) "SplMaxHeap" ["SplObjectStorage"]=> string(16) "SplObjectStorage" ["SplObserver"]=> string(11) "SplObserver" ["SplPriorityQueue"]=> string(16) "SplPriorityQueue" ["SplQueue"]=> string(8) "SplQueue" ["SplStack"]=> string(8) "SplStack" ["SplSubject"]=> string(10) "SplSubject" ["SplTempFileObject"]=> string(17) "SplTempFileObject" ["UnderflowException"]=> string(18) "UnderflowException" ["UnexpectedValueException"]=> string(24) "UnexpectedValueException" }
Output for 5.2.0 - 5.2.17
array(43) { ["AppendIterator"]=> string(14) "AppendIterator" ["ArrayIterator"]=> string(13) "ArrayIterator" ["ArrayObject"]=> string(11) "ArrayObject" ["BadFunctionCallException"]=> string(24) "BadFunctionCallException" ["BadMethodCallException"]=> string(22) "BadMethodCallException" ["CachingIterator"]=> string(15) "CachingIterator" ["Countable"]=> string(9) "Countable" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["DomainException"]=> string(15) "DomainException" ["EmptyIterator"]=> string(13) "EmptyIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["InfiniteIterator"]=> string(16) "InfiniteIterator" ["InvalidArgumentException"]=> string(24) "InvalidArgumentException" ["IteratorIterator"]=> string(16) "IteratorIterator" ["LengthException"]=> string(15) "LengthException" ["LimitIterator"]=> string(13) "LimitIterator" ["LogicException"]=> string(14) "LogicException" ["NoRewindIterator"]=> string(16) "NoRewindIterator" ["OuterIterator"]=> string(13) "OuterIterator" ["OutOfBoundsException"]=> string(20) "OutOfBoundsException" ["OutOfRangeException"]=> string(19) "OutOfRangeException" ["OverflowException"]=> string(17) "OverflowException" ["ParentIterator"]=> string(14) "ParentIterator" ["RangeException"]=> string(14) "RangeException" ["RecursiveArrayIterator"]=> string(22) "RecursiveArrayIterator" ["RecursiveCachingIterator"]=> string(24) "RecursiveCachingIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveFilterIterator"]=> string(23) "RecursiveFilterIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["RecursiveRegexIterator"]=> string(22) "RecursiveRegexIterator" ["RegexIterator"]=> string(13) "RegexIterator" ["RuntimeException"]=> string(16) "RuntimeException" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SimpleXMLIterator"]=> string(17) "SimpleXMLIterator" ["SplFileInfo"]=> string(11) "SplFileInfo" ["SplFileObject"]=> string(13) "SplFileObject" ["SplObjectStorage"]=> string(16) "SplObjectStorage" ["SplObserver"]=> string(11) "SplObserver" ["SplSubject"]=> string(10) "SplSubject" ["SplTempFileObject"]=> string(17) "SplTempFileObject" ["UnderflowException"]=> string(18) "UnderflowException" ["UnexpectedValueException"]=> string(24) "UnexpectedValueException" }
Output for 5.1.2 - 5.1.6
array(41) { ["AppendIterator"]=> string(14) "AppendIterator" ["ArrayIterator"]=> string(13) "ArrayIterator" ["ArrayObject"]=> string(11) "ArrayObject" ["BadFunctionCallException"]=> string(24) "BadFunctionCallException" ["BadMethodCallException"]=> string(22) "BadMethodCallException" ["CachingIterator"]=> string(15) "CachingIterator" ["Countable"]=> string(9) "Countable" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["DomainException"]=> string(15) "DomainException" ["EmptyIterator"]=> string(13) "EmptyIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["InfiniteIterator"]=> string(16) "InfiniteIterator" ["InvalidArgumentException"]=> string(24) "InvalidArgumentException" ["IteratorIterator"]=> string(16) "IteratorIterator" ["LengthException"]=> string(15) "LengthException" ["LimitIterator"]=> string(13) "LimitIterator" ["LogicException"]=> string(14) "LogicException" ["NoRewindIterator"]=> string(16) "NoRewindIterator" ["OuterIterator"]=> string(13) "OuterIterator" ["OutOfBoundsException"]=> string(20) "OutOfBoundsException" ["OutOfRangeException"]=> string(19) "OutOfRangeException" ["OverflowException"]=> string(17) "OverflowException" ["ParentIterator"]=> string(14) "ParentIterator" ["RangeException"]=> string(14) "RangeException" ["RecursiveArrayIterator"]=> string(22) "RecursiveArrayIterator" ["RecursiveCachingIterator"]=> string(24) "RecursiveCachingIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveFilterIterator"]=> string(23) "RecursiveFilterIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["RuntimeException"]=> string(16) "RuntimeException" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SimpleXMLIterator"]=> string(17) "SimpleXMLIterator" ["SplFileInfo"]=> string(11) "SplFileInfo" ["SplFileObject"]=> string(13) "SplFileObject" ["SplObjectStorage"]=> string(16) "SplObjectStorage" ["SplObserver"]=> string(11) "SplObserver" ["SplSubject"]=> string(10) "SplSubject" ["SplTempFileObject"]=> string(17) "SplTempFileObject" ["UnderflowException"]=> string(18) "UnderflowException" ["UnexpectedValueException"]=> string(24) "UnexpectedValueException" }
Output for 5.1.0 - 5.1.1
array(39) { ["AppendIterator"]=> string(14) "AppendIterator" ["ArrayIterator"]=> string(13) "ArrayIterator" ["ArrayObject"]=> string(11) "ArrayObject" ["BadFunctionCallException"]=> string(24) "BadFunctionCallException" ["BadMethodCallException"]=> string(22) "BadMethodCallException" ["CachingIterator"]=> string(15) "CachingIterator" ["Countable"]=> string(9) "Countable" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["DomainException"]=> string(15) "DomainException" ["EmptyIterator"]=> string(13) "EmptyIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["InfiniteIterator"]=> string(16) "InfiniteIterator" ["InvalidArgumentException"]=> string(24) "InvalidArgumentException" ["IteratorIterator"]=> string(16) "IteratorIterator" ["LengthException"]=> string(15) "LengthException" ["LimitIterator"]=> string(13) "LimitIterator" ["LogicException"]=> string(14) "LogicException" ["NoRewindIterator"]=> string(16) "NoRewindIterator" ["OuterIterator"]=> string(13) "OuterIterator" ["OutOfBoundsException"]=> string(20) "OutOfBoundsException" ["OutOfRangeException"]=> string(19) "OutOfRangeException" ["OverflowException"]=> string(17) "OverflowException" ["ParentIterator"]=> string(14) "ParentIterator" ["RangeException"]=> string(14) "RangeException" ["RecursiveArrayIterator"]=> string(22) "RecursiveArrayIterator" ["RecursiveCachingIterator"]=> string(24) "RecursiveCachingIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveFilterIterator"]=> string(23) "RecursiveFilterIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["RuntimeException"]=> string(16) "RuntimeException" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SimpleXMLIterator"]=> string(17) "SimpleXMLIterator" ["SplFileObject"]=> string(13) "SplFileObject" ["SplObjectStorage"]=> string(16) "SplObjectStorage" ["SplObserver"]=> string(11) "SplObserver" ["SplSubject"]=> string(10) "SplSubject" ["UnderflowException"]=> string(18) "UnderflowException" ["UnexpectedValueException"]=> string(24) "UnexpectedValueException" }
Output for 5.0.5
array(13) { ["ArrayIterator"]=> string(13) "ArrayIterator" ["ArrayObject"]=> string(11) "ArrayObject" ["CachingIterator"]=> string(15) "CachingIterator" ["CachingRecursiveIterator"]=> string(24) "CachingRecursiveIterator" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["LimitIterator"]=> string(13) "LimitIterator" ["ParentIterator"]=> string(14) "ParentIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SimpleXMLIterator"]=> string(17) "SimpleXMLIterator" }
Output for 5.0.0 - 5.0.4
array(13) { ["ArrayObject"]=> string(11) "ArrayObject" ["ArrayIterator"]=> string(13) "ArrayIterator" ["CachingIterator"]=> string(15) "CachingIterator" ["CachingRecursiveIterator"]=> string(24) "CachingRecursiveIterator" ["DirectoryIterator"]=> string(17) "DirectoryIterator" ["FilterIterator"]=> string(14) "FilterIterator" ["LimitIterator"]=> string(13) "LimitIterator" ["ParentIterator"]=> string(14) "ParentIterator" ["RecursiveDirectoryIterator"]=> string(26) "RecursiveDirectoryIterator" ["RecursiveIterator"]=> string(17) "RecursiveIterator" ["RecursiveIteratorIterator"]=> string(25) "RecursiveIteratorIterator" ["SeekableIterator"]=> string(16) "SeekableIterator" ["SimpleXMLIterator"]=> string(17) "SimpleXMLIterator" }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: spl_classes() in /in/osdSM on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: spl_classes() in /in/osdSM on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: spl_classes() in /in/osdSM on line 3