3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = get_declared_classes(); foreach($foo as $bar) { echo $bar . PHP_EOL; }
Output for git.master, git.master_jit
InternalIterator Exception ErrorException Error CompileError ParseError TypeError ArgumentCountError ValueError ArithmeticError DivisionByZeroError UnhandledMatchError Closure Generator ClosedGeneratorException WeakReference WeakMap Attribute ReturnTypeWillChange AllowDynamicProperties SensitiveParameter SensitiveParameterValue Fiber FiberError stdClass DateTime DateTimeImmutable DateTimeZone DateInterval DatePeriod LibXMLError SQLite3 SQLite3Stmt SQLite3Result InflateContext DeflateContext DOMException DOMImplementation DOMNode DOMNameSpaceNode DOMDocumentFragment DOMDocument DOMNodeList DOMNamedNodeMap DOMCharacterData DOMAttr DOMElement DOMText DOMComment DOMCdataSection DOMDocumentType DOMNotation DOMEntity DOMEntityReference DOMProcessingInstruction DOMXPath finfo HashContext JsonException LogicException BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException OutOfRangeException RuntimeException OutOfBoundsException OverflowException RangeException UnderflowException UnexpectedValueException RecursiveIteratorIterator IteratorIterator FilterIterator RecursiveFilterIterator CallbackFilterIterator RecursiveCallbackFilterIterator ParentIterator LimitIterator CachingIterator RecursiveCachingIterator NoRewindIterator AppendIterator InfiniteIterator RegexIterator RecursiveRegexIterator EmptyIterator RecursiveTreeIterator ArrayObject ArrayIterator RecursiveArrayIterator SplFileInfo DirectoryIterator FilesystemIterator RecursiveDirectoryIterator GlobIterator SplFileObject SplTempFileObject SplDoublyLinkedList SplQueue SplStack SplHeap SplMinHeap SplMaxHeap SplPriorityQueue SplFixedArray SplObjectStorage MultipleIterator PDOException PDO PDOStatement PDORow SessionHandler Random\RandomError Random\BrokenRandomEngineError Random\RandomException Random\Engine\Mt19937 Random\Engine\PcgOneseq128XslRr64 Random\Engine\Xoshiro256StarStar Random\Engine\Secure Random\Randomizer ReflectionException Reflection ReflectionFunctionAbstract ReflectionFunction ReflectionGenerator ReflectionParameter ReflectionType ReflectionNamedType ReflectionUnionType ReflectionIntersectionType ReflectionMethod ReflectionClass ReflectionObject ReflectionProperty ReflectionClassConstant ReflectionExtension ReflectionZendExtension ReflectionReference ReflectionAttribute ReflectionEnum ReflectionEnumUnitCase ReflectionEnumBackedCase ReflectionFiber __PHP_Incomplete_Class AssertionError php_user_filter Directory SimpleXMLElement SimpleXMLIterator PharException Phar PharData PharFileInfo PhpToken XMLParser XMLReader XMLWriter GMP Collator NumberFormatter Normalizer Locale MessageFormatter IntlDateFormatter IntlDatePatternGenerator ResourceBundle Transliterator IntlTimeZone IntlCalendar IntlGregorianCalendar Spoofchecker IntlException IntlIterator IntlBreakIterator IntlRuleBasedBreakIterator IntlCodePointBreakIterator IntlPartsIterator UConverter IntlChar
Output for rfc.property-hooks
InternalIterator Exception ErrorException Error CompileError ParseError TypeError ArgumentCountError ValueError ArithmeticError DivisionByZeroError UnhandledMatchError Closure Generator ClosedGeneratorException WeakReference WeakMap Attribute ReturnTypeWillChange AllowDynamicProperties SensitiveParameter SensitiveParameterValue Fiber FiberError stdClass DateTime DateTimeImmutable DateTimeZone DateInterval DatePeriod DateError DateObjectError DateRangeError DateException DateInvalidTimeZoneException DateInvalidOperationException DateMalformedStringException DateMalformedIntervalStringException DateMalformedPeriodStringException LibXMLError SQLite3 SQLite3Stmt SQLite3Result InflateContext DeflateContext DOMException DOMImplementation DOMNode DOMNameSpaceNode DOMDocumentFragment DOMDocument DOMNodeList DOMNamedNodeMap DOMCharacterData DOMAttr DOMElement DOMText DOMComment DOMCdataSection DOMDocumentType DOMNotation DOMEntity DOMEntityReference DOMProcessingInstruction DOMXPath finfo HashContext JsonException LogicException BadFunctionCallException BadMethodCallException DomainException InvalidArgumentException LengthException OutOfRangeException RuntimeException OutOfBoundsException OverflowException RangeException UnderflowException UnexpectedValueException RecursiveIteratorIterator IteratorIterator FilterIterator RecursiveFilterIterator CallbackFilterIterator RecursiveCallbackFilterIterator ParentIterator LimitIterator CachingIterator RecursiveCachingIterator NoRewindIterator AppendIterator InfiniteIterator RegexIterator RecursiveRegexIterator EmptyIterator RecursiveTreeIterator ArrayObject ArrayIterator RecursiveArrayIterator SplFileInfo DirectoryIterator FilesystemIterator RecursiveDirectoryIterator GlobIterator SplFileObject SplTempFileObject SplDoublyLinkedList SplQueue SplStack SplHeap SplMinHeap SplMaxHeap SplPriorityQueue SplFixedArray SplObjectStorage MultipleIterator PDOException PDO PDOStatement PDORow SessionHandler Random\RandomError Random\BrokenRandomEngineError Random\RandomException Random\Engine\Mt19937 Random\Engine\PcgOneseq128XslRr64 Random\Engine\Xoshiro256StarStar Random\Engine\Secure Random\Randomizer Random\IntervalBoundary ReflectionException Reflection ReflectionFunctionAbstract ReflectionFunction ReflectionGenerator ReflectionParameter ReflectionType ReflectionNamedType ReflectionUnionType ReflectionIntersectionType ReflectionMethod ReflectionClass ReflectionObject ReflectionProperty ReflectionClassConstant ReflectionExtension ReflectionZendExtension ReflectionReference ReflectionAttribute ReflectionEnum ReflectionEnumUnitCase ReflectionEnumBackedCase ReflectionFiber __PHP_Incomplete_Class AssertionError php_user_filter Directory SimpleXMLElement SimpleXMLIterator PharException Phar PharData PharFileInfo PhpToken XMLParser XMLReader XMLWriter GMP Collator NumberFormatter Normalizer Locale MessageFormatter IntlDateFormatter IntlDatePatternGenerator ResourceBundle Transliterator IntlTimeZone IntlCalendar IntlGregorianCalendar Spoofchecker IntlException IntlIterator IntlBreakIterator IntlRuleBasedBreakIterator IntlCodePointBreakIterator IntlPartsIterator UConverter IntlChar

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
42.53 ms | 409 KiB | 8 Q