3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(spl_classes());
Output for 5.4.0 - 5.6.26, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0RC5
Array ( [AppendIterator] => AppendIterator [ArrayIterator] => ArrayIterator [ArrayObject] => ArrayObject [BadFunctionCallException] => BadFunctionCallException [BadMethodCallException] => BadMethodCallException [CachingIterator] => CachingIterator [CallbackFilterIterator] => CallbackFilterIterator [Countable] => Countable [DirectoryIterator] => DirectoryIterator [DomainException] => DomainException [EmptyIterator] => EmptyIterator [FilesystemIterator] => FilesystemIterator [FilterIterator] => FilterIterator [GlobIterator] => GlobIterator [InfiniteIterator] => InfiniteIterator [InvalidArgumentException] => InvalidArgumentException [IteratorIterator] => IteratorIterator [LengthException] => LengthException [LimitIterator] => LimitIterator [LogicException] => LogicException [MultipleIterator] => MultipleIterator [NoRewindIterator] => NoRewindIterator [OuterIterator] => OuterIterator [OutOfBoundsException] => OutOfBoundsException [OutOfRangeException] => OutOfRangeException [OverflowException] => OverflowException [ParentIterator] => ParentIterator [RangeException] => RangeException [RecursiveArrayIterator] => RecursiveArrayIterator [RecursiveCachingIterator] => RecursiveCachingIterator [RecursiveCallbackFilterIterator] => RecursiveCallbackFilterIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveFilterIterator] => RecursiveFilterIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [RecursiveRegexIterator] => RecursiveRegexIterator [RecursiveTreeIterator] => RecursiveTreeIterator [RegexIterator] => RegexIterator [RuntimeException] => RuntimeException [SeekableIterator] => SeekableIterator [SplDoublyLinkedList] => SplDoublyLinkedList [SplFileInfo] => SplFileInfo [SplFileObject] => SplFileObject [SplFixedArray] => SplFixedArray [SplHeap] => SplHeap [SplMinHeap] => SplMinHeap [SplMaxHeap] => SplMaxHeap [SplObjectStorage] => SplObjectStorage [SplObserver] => SplObserver [SplPriorityQueue] => SplPriorityQueue [SplQueue] => SplQueue [SplStack] => SplStack [SplSubject] => SplSubject [SplTempFileObject] => SplTempFileObject [UnderflowException] => UnderflowException [UnexpectedValueException] => UnexpectedValueException )
Output for 5.3.0 - 5.3.29
Array ( [AppendIterator] => AppendIterator [ArrayIterator] => ArrayIterator [ArrayObject] => ArrayObject [BadFunctionCallException] => BadFunctionCallException [BadMethodCallException] => BadMethodCallException [CachingIterator] => CachingIterator [Countable] => Countable [DirectoryIterator] => DirectoryIterator [DomainException] => DomainException [EmptyIterator] => EmptyIterator [FilesystemIterator] => FilesystemIterator [FilterIterator] => FilterIterator [GlobIterator] => GlobIterator [InfiniteIterator] => InfiniteIterator [InvalidArgumentException] => InvalidArgumentException [IteratorIterator] => IteratorIterator [LengthException] => LengthException [LimitIterator] => LimitIterator [LogicException] => LogicException [MultipleIterator] => MultipleIterator [NoRewindIterator] => NoRewindIterator [OuterIterator] => OuterIterator [OutOfBoundsException] => OutOfBoundsException [OutOfRangeException] => OutOfRangeException [OverflowException] => OverflowException [ParentIterator] => ParentIterator [RangeException] => RangeException [RecursiveArrayIterator] => RecursiveArrayIterator [RecursiveCachingIterator] => RecursiveCachingIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveFilterIterator] => RecursiveFilterIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [RecursiveRegexIterator] => RecursiveRegexIterator [RecursiveTreeIterator] => RecursiveTreeIterator [RegexIterator] => RegexIterator [RuntimeException] => RuntimeException [SeekableIterator] => SeekableIterator [SplDoublyLinkedList] => SplDoublyLinkedList [SplFileInfo] => SplFileInfo [SplFileObject] => SplFileObject [SplFixedArray] => SplFixedArray [SplHeap] => SplHeap [SplMinHeap] => SplMinHeap [SplMaxHeap] => SplMaxHeap [SplObjectStorage] => SplObjectStorage [SplObserver] => SplObserver [SplPriorityQueue] => SplPriorityQueue [SplQueue] => SplQueue [SplStack] => SplStack [SplSubject] => SplSubject [SplTempFileObject] => SplTempFileObject [UnderflowException] => UnderflowException [UnexpectedValueException] => UnexpectedValueException )
Output for 5.2.0 - 5.2.17
Array ( [AppendIterator] => AppendIterator [ArrayIterator] => ArrayIterator [ArrayObject] => ArrayObject [BadFunctionCallException] => BadFunctionCallException [BadMethodCallException] => BadMethodCallException [CachingIterator] => CachingIterator [Countable] => Countable [DirectoryIterator] => DirectoryIterator [DomainException] => DomainException [EmptyIterator] => EmptyIterator [FilterIterator] => FilterIterator [InfiniteIterator] => InfiniteIterator [InvalidArgumentException] => InvalidArgumentException [IteratorIterator] => IteratorIterator [LengthException] => LengthException [LimitIterator] => LimitIterator [LogicException] => LogicException [NoRewindIterator] => NoRewindIterator [OuterIterator] => OuterIterator [OutOfBoundsException] => OutOfBoundsException [OutOfRangeException] => OutOfRangeException [OverflowException] => OverflowException [ParentIterator] => ParentIterator [RangeException] => RangeException [RecursiveArrayIterator] => RecursiveArrayIterator [RecursiveCachingIterator] => RecursiveCachingIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveFilterIterator] => RecursiveFilterIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [RecursiveRegexIterator] => RecursiveRegexIterator [RegexIterator] => RegexIterator [RuntimeException] => RuntimeException [SeekableIterator] => SeekableIterator [SimpleXMLIterator] => SimpleXMLIterator [SplFileInfo] => SplFileInfo [SplFileObject] => SplFileObject [SplObjectStorage] => SplObjectStorage [SplObserver] => SplObserver [SplSubject] => SplSubject [SplTempFileObject] => SplTempFileObject [UnderflowException] => UnderflowException [UnexpectedValueException] => UnexpectedValueException )
Output for 5.1.2 - 5.1.6
Array ( [AppendIterator] => AppendIterator [ArrayIterator] => ArrayIterator [ArrayObject] => ArrayObject [BadFunctionCallException] => BadFunctionCallException [BadMethodCallException] => BadMethodCallException [CachingIterator] => CachingIterator [Countable] => Countable [DirectoryIterator] => DirectoryIterator [DomainException] => DomainException [EmptyIterator] => EmptyIterator [FilterIterator] => FilterIterator [InfiniteIterator] => InfiniteIterator [InvalidArgumentException] => InvalidArgumentException [IteratorIterator] => IteratorIterator [LengthException] => LengthException [LimitIterator] => LimitIterator [LogicException] => LogicException [NoRewindIterator] => NoRewindIterator [OuterIterator] => OuterIterator [OutOfBoundsException] => OutOfBoundsException [OutOfRangeException] => OutOfRangeException [OverflowException] => OverflowException [ParentIterator] => ParentIterator [RangeException] => RangeException [RecursiveArrayIterator] => RecursiveArrayIterator [RecursiveCachingIterator] => RecursiveCachingIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveFilterIterator] => RecursiveFilterIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [RuntimeException] => RuntimeException [SeekableIterator] => SeekableIterator [SimpleXMLIterator] => SimpleXMLIterator [SplFileInfo] => SplFileInfo [SplFileObject] => SplFileObject [SplObjectStorage] => SplObjectStorage [SplObserver] => SplObserver [SplSubject] => SplSubject [SplTempFileObject] => SplTempFileObject [UnderflowException] => UnderflowException [UnexpectedValueException] => UnexpectedValueException )
Output for 5.1.0 - 5.1.1
Array ( [AppendIterator] => AppendIterator [ArrayIterator] => ArrayIterator [ArrayObject] => ArrayObject [BadFunctionCallException] => BadFunctionCallException [BadMethodCallException] => BadMethodCallException [CachingIterator] => CachingIterator [Countable] => Countable [DirectoryIterator] => DirectoryIterator [DomainException] => DomainException [EmptyIterator] => EmptyIterator [FilterIterator] => FilterIterator [InfiniteIterator] => InfiniteIterator [InvalidArgumentException] => InvalidArgumentException [IteratorIterator] => IteratorIterator [LengthException] => LengthException [LimitIterator] => LimitIterator [LogicException] => LogicException [NoRewindIterator] => NoRewindIterator [OuterIterator] => OuterIterator [OutOfBoundsException] => OutOfBoundsException [OutOfRangeException] => OutOfRangeException [OverflowException] => OverflowException [ParentIterator] => ParentIterator [RangeException] => RangeException [RecursiveArrayIterator] => RecursiveArrayIterator [RecursiveCachingIterator] => RecursiveCachingIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveFilterIterator] => RecursiveFilterIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [RuntimeException] => RuntimeException [SeekableIterator] => SeekableIterator [SimpleXMLIterator] => SimpleXMLIterator [SplFileObject] => SplFileObject [SplObjectStorage] => SplObjectStorage [SplObserver] => SplObserver [SplSubject] => SplSubject [UnderflowException] => UnderflowException [UnexpectedValueException] => UnexpectedValueException )
Output for 5.0.5
Array ( [ArrayIterator] => ArrayIterator [ArrayObject] => ArrayObject [CachingIterator] => CachingIterator [CachingRecursiveIterator] => CachingRecursiveIterator [DirectoryIterator] => DirectoryIterator [FilterIterator] => FilterIterator [LimitIterator] => LimitIterator [ParentIterator] => ParentIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [SeekableIterator] => SeekableIterator [SimpleXMLIterator] => SimpleXMLIterator )
Output for 5.0.0 - 5.0.4
Array ( [ArrayObject] => ArrayObject [ArrayIterator] => ArrayIterator [CachingIterator] => CachingIterator [CachingRecursiveIterator] => CachingRecursiveIterator [DirectoryIterator] => DirectoryIterator [FilterIterator] => FilterIterator [LimitIterator] => LimitIterator [ParentIterator] => ParentIterator [RecursiveDirectoryIterator] => RecursiveDirectoryIterator [RecursiveIterator] => RecursiveIterator [RecursiveIteratorIterator] => RecursiveIteratorIterator [SeekableIterator] => SeekableIterator [SimpleXMLIterator] => SimpleXMLIterator )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: spl_classes() in /in/1jFGm on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: spl_classes() in /in/1jFGm on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: spl_classes() in /in/1jFGm on line 2