3v4l.org

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

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:
46.5 ms | 416 KiB | 8 Q