3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function instantiable($className) { if (! $className) { return true; } $reflection = new ReflectionClass($className); $hasFinalConstruct = false; if ($reflection->hasMethod('__construct')) { $hasFinalConstruct = $reflection->getMethod('__construct')->isFinal(); } $parentClass = $reflection->getParentClass(); return instantiable($parentClass ? $parentClass->getName() : null) && ! ($reflection->isInternal() && $hasFinalConstruct); }; $negate = function ($function) { return function (...$args) use ($function) { return ! $function(...$args); }; }; var_dump([ 'instantiable' => array_filter(get_declared_classes(), 'instantiable'), 'not_instantiable' => array_filter(get_declared_classes(), $negate('instantiable')), ]);
Output for 7.1.0
array(2) { ["instantiable"]=> array(153) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(5) "Error" [4]=> string(10) "ParseError" [5]=> string(9) "TypeError" [6]=> string(18) "ArgumentCountError" [7]=> string(15) "ArithmeticError" [8]=> string(19) "DivisionByZeroError" [9]=> string(7) "Closure" [10]=> string(9) "Generator" [11]=> string(24) "ClosedGeneratorException" [12]=> string(8) "DateTime" [13]=> string(17) "DateTimeImmutable" [14]=> string(12) "DateTimeZone" [15]=> string(12) "DateInterval" [16]=> string(10) "DatePeriod" [17]=> string(11) "LibXMLError" [18]=> string(7) "SQLite3" [19]=> string(11) "SQLite3Stmt" [20]=> string(13) "SQLite3Result" [21]=> string(12) "DOMException" [22]=> string(13) "DOMStringList" [23]=> string(11) "DOMNameList" [24]=> string(21) "DOMImplementationList" [25]=> string(23) "DOMImplementationSource" [26]=> string(17) "DOMImplementation" [27]=> string(7) "DOMNode" [28]=> string(16) "DOMNameSpaceNode" [29]=> string(19) "DOMDocumentFragment" [30]=> string(11) "DOMDocument" [31]=> string(11) "DOMNodeList" [32]=> string(15) "DOMNamedNodeMap" [33]=> string(16) "DOMCharacterData" [34]=> string(7) "DOMAttr" [35]=> string(10) "DOMElement" [36]=> string(7) "DOMText" [37]=> string(10) "DOMComment" [38]=> string(11) "DOMTypeinfo" [39]=> string(18) "DOMUserDataHandler" [40]=> string(11) "DOMDomError" [41]=> string(15) "DOMErrorHandler" [42]=> string(10) "DOMLocator" [43]=> string(16) "DOMConfiguration" [44]=> string(15) "DOMCdataSection" [45]=> string(15) "DOMDocumentType" [46]=> string(11) "DOMNotation" [47]=> string(9) "DOMEntity" [48]=> string(18) "DOMEntityReference" [49]=> string(24) "DOMProcessingInstruction" [50]=> string(15) "DOMStringExtend" [51]=> string(8) "DOMXPath" [52]=> string(5) "finfo" [53]=> string(14) "LogicException" [54]=> string(24) "BadFunctionCallException" [55]=> string(22) "BadMethodCallException" [56]=> string(15) "DomainException" [57]=> string(24) "InvalidArgumentException" [58]=> string(15) "LengthException" [59]=> string(19) "OutOfRangeException" [60]=> string(16) "RuntimeException" [61]=> string(20) "OutOfBoundsException" [62]=> string(17) "OverflowException" [63]=> string(14) "RangeException" [64]=> string(18) "UnderflowException" [65]=> string(24) "UnexpectedValueException" [66]=> string(25) "RecursiveIteratorIterator" [67]=> string(16) "IteratorIterator" [68]=> string(14) "FilterIterator" [69]=> string(23) "RecursiveFilterIterator" [70]=> string(22) "CallbackFilterIterator" [71]=> string(31) "RecursiveCallbackFilterIterator" [72]=> string(14) "ParentIterator" [73]=> string(13) "LimitIterator" [74]=> string(15) "CachingIterator" [75]=> string(24) "RecursiveCachingIterator" [76]=> string(16) "NoRewindIterator" [77]=> string(14) "AppendIterator" [78]=> string(16) "InfiniteIterator" [79]=> string(13) "RegexIterator" [80]=> string(22) "RecursiveRegexIterator" [81]=> string(13) "EmptyIterator" [82]=> string(21) "RecursiveTreeIterator" [83]=> string(11) "ArrayObject" [84]=> string(13) "ArrayIterator" [85]=> string(22) "RecursiveArrayIterator" [86]=> string(11) "SplFileInfo" [87]=> string(17) "DirectoryIterator" [88]=> string(18) "FilesystemIterator" [89]=> string(26) "RecursiveDirectoryIterator" [90]=> string(12) "GlobIterator" [91]=> string(13) "SplFileObject" [92]=> string(17) "SplTempFileObject" [93]=> string(19) "SplDoublyLinkedList" [94]=> string(8) "SplQueue" [95]=> string(8) "SplStack" [96]=> string(7) "SplHeap" [97]=> string(10) "SplMinHeap" [98]=> string(10) "SplMaxHeap" [99]=> string(16) "SplPriorityQueue" [100]=> string(13) "SplFixedArray" [101]=> string(16) "SplObjectStorage" [102]=> string(16) "MultipleIterator" [103]=> string(12) "PDOException" [104]=> string(3) "PDO" [105]=> string(12) "PDOStatement" [106]=> string(6) "PDORow" [107]=> string(14) "SessionHandler" [108]=> string(19) "ReflectionException" [109]=> string(10) "Reflection" [110]=> string(26) "ReflectionFunctionAbstract" [111]=> string(18) "ReflectionFunction" [112]=> string(19) "ReflectionGenerator" [113]=> string(19) "ReflectionParameter" [114]=> string(14) "ReflectionType" [115]=> string(19) "ReflectionNamedType" [116]=> string(16) "ReflectionMethod" [117]=> string(15) "ReflectionClass" [118]=> string(16) "ReflectionObject" [119]=> string(18) "ReflectionProperty" [120]=> string(23) "ReflectionClassConstant" [121]=> string(19) "ReflectionExtension" [122]=> string(23) "ReflectionZendExtension" [123]=> string(22) "__PHP_Incomplete_Class" [124]=> string(15) "php_user_filter" [125]=> string(9) "Directory" [126]=> string(14) "AssertionError" [129]=> string(13) "PharException" [130]=> string(4) "Phar" [131]=> string(8) "PharData" [132]=> string(12) "PharFileInfo" [133]=> string(9) "XMLReader" [134]=> string(9) "XMLWriter" [135]=> string(3) "GMP" [136]=> string(8) "Collator" [137]=> string(15) "NumberFormatter" [138]=> string(10) "Normalizer" [139]=> string(6) "Locale" [140]=> string(16) "MessageFormatter" [141]=> string(17) "IntlDateFormatter" [142]=> string(14) "ResourceBundle" [144]=> string(12) "IntlTimeZone" [145]=> string(12) "IntlCalendar" [146]=> string(21) "IntlGregorianCalendar" [147]=> string(12) "Spoofchecker" [148]=> string(13) "IntlException" [149]=> string(12) "IntlIterator" [150]=> string(17) "IntlBreakIterator" [151]=> string(26) "IntlRuleBasedBreakIterator" [152]=> string(26) "IntlCodePointBreakIterator" [153]=> string(17) "IntlPartsIterator" [154]=> string(10) "UConverter" [155]=> string(8) "IntlChar" } ["not_instantiable"]=> array(3) { [127]=> string(16) "SimpleXMLElement" [128]=> string(17) "SimpleXMLIterator" [143]=> string(14) "Transliterator" } }
Output for 7.0.14
array(2) { ["instantiable"]=> array(150) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(5) "Error" [4]=> string(10) "ParseError" [5]=> string(9) "TypeError" [6]=> string(15) "ArithmeticError" [7]=> string(19) "DivisionByZeroError" [8]=> string(7) "Closure" [9]=> string(9) "Generator" [10]=> string(24) "ClosedGeneratorException" [11]=> string(8) "DateTime" [12]=> string(17) "DateTimeImmutable" [13]=> string(12) "DateTimeZone" [14]=> string(12) "DateInterval" [15]=> string(10) "DatePeriod" [16]=> string(11) "LibXMLError" [17]=> string(7) "SQLite3" [18]=> string(11) "SQLite3Stmt" [19]=> string(13) "SQLite3Result" [20]=> string(12) "DOMException" [21]=> string(13) "DOMStringList" [22]=> string(11) "DOMNameList" [23]=> string(21) "DOMImplementationList" [24]=> string(23) "DOMImplementationSource" [25]=> string(17) "DOMImplementation" [26]=> string(7) "DOMNode" [27]=> string(16) "DOMNameSpaceNode" [28]=> string(19) "DOMDocumentFragment" [29]=> string(11) "DOMDocument" [30]=> string(11) "DOMNodeList" [31]=> string(15) "DOMNamedNodeMap" [32]=> string(16) "DOMCharacterData" [33]=> string(7) "DOMAttr" [34]=> string(10) "DOMElement" [35]=> string(7) "DOMText" [36]=> string(10) "DOMComment" [37]=> string(11) "DOMTypeinfo" [38]=> string(18) "DOMUserDataHandler" [39]=> string(11) "DOMDomError" [40]=> string(15) "DOMErrorHandler" [41]=> string(10) "DOMLocator" [42]=> string(16) "DOMConfiguration" [43]=> string(15) "DOMCdataSection" [44]=> string(15) "DOMDocumentType" [45]=> string(11) "DOMNotation" [46]=> string(9) "DOMEntity" [47]=> string(18) "DOMEntityReference" [48]=> string(24) "DOMProcessingInstruction" [49]=> string(15) "DOMStringExtend" [50]=> string(8) "DOMXPath" [51]=> string(5) "finfo" [52]=> string(14) "LogicException" [53]=> string(24) "BadFunctionCallException" [54]=> string(22) "BadMethodCallException" [55]=> string(15) "DomainException" [56]=> string(24) "InvalidArgumentException" [57]=> string(15) "LengthException" [58]=> string(19) "OutOfRangeException" [59]=> string(16) "RuntimeException" [60]=> string(20) "OutOfBoundsException" [61]=> string(17) "OverflowException" [62]=> string(14) "RangeException" [63]=> string(18) "UnderflowException" [64]=> string(24) "UnexpectedValueException" [65]=> string(25) "RecursiveIteratorIterator" [66]=> string(16) "IteratorIterator" [67]=> string(14) "FilterIterator" [68]=> string(23) "RecursiveFilterIterator" [69]=> string(22) "CallbackFilterIterator" [70]=> string(31) "RecursiveCallbackFilterIterator" [71]=> string(14) "ParentIterator" [72]=> string(13) "LimitIterator" [73]=> string(15) "CachingIterator" [74]=> string(24) "RecursiveCachingIterator" [75]=> string(16) "NoRewindIterator" [76]=> string(14) "AppendIterator" [77]=> string(16) "InfiniteIterator" [78]=> string(13) "RegexIterator" [79]=> string(22) "RecursiveRegexIterator" [80]=> string(13) "EmptyIterator" [81]=> string(21) "RecursiveTreeIterator" [82]=> string(11) "ArrayObject" [83]=> string(13) "ArrayIterator" [84]=> string(22) "RecursiveArrayIterator" [85]=> string(11) "SplFileInfo" [86]=> string(17) "DirectoryIterator" [87]=> string(18) "FilesystemIterator" [88]=> string(26) "RecursiveDirectoryIterator" [89]=> string(12) "GlobIterator" [90]=> string(13) "SplFileObject" [91]=> string(17) "SplTempFileObject" [92]=> string(19) "SplDoublyLinkedList" [93]=> string(8) "SplQueue" [94]=> string(8) "SplStack" [95]=> string(7) "SplHeap" [96]=> string(10) "SplMinHeap" [97]=> string(10) "SplMaxHeap" [98]=> string(16) "SplPriorityQueue" [99]=> string(13) "SplFixedArray" [100]=> string(16) "SplObjectStorage" [101]=> string(16) "MultipleIterator" [102]=> string(12) "PDOException" [103]=> string(3) "PDO" [104]=> string(12) "PDOStatement" [105]=> string(6) "PDORow" [106]=> string(14) "SessionHandler" [107]=> string(19) "ReflectionException" [108]=> string(10) "Reflection" [109]=> string(26) "ReflectionFunctionAbstract" [110]=> string(18) "ReflectionFunction" [111]=> string(19) "ReflectionGenerator" [112]=> string(19) "ReflectionParameter" [113]=> string(14) "ReflectionType" [114]=> string(16) "ReflectionMethod" [115]=> string(15) "ReflectionClass" [116]=> string(16) "ReflectionObject" [117]=> string(18) "ReflectionProperty" [118]=> string(19) "ReflectionExtension" [119]=> string(23) "ReflectionZendExtension" [120]=> string(22) "__PHP_Incomplete_Class" [121]=> string(15) "php_user_filter" [122]=> string(9) "Directory" [123]=> string(14) "AssertionError" [126]=> string(13) "PharException" [127]=> string(4) "Phar" [128]=> string(8) "PharData" [129]=> string(12) "PharFileInfo" [130]=> string(9) "XMLReader" [131]=> string(9) "XMLWriter" [132]=> string(3) "GMP" [133]=> string(8) "Collator" [134]=> string(15) "NumberFormatter" [135]=> string(10) "Normalizer" [136]=> string(6) "Locale" [137]=> string(16) "MessageFormatter" [138]=> string(17) "IntlDateFormatter" [139]=> string(14) "ResourceBundle" [141]=> string(12) "IntlTimeZone" [142]=> string(12) "IntlCalendar" [143]=> string(21) "IntlGregorianCalendar" [144]=> string(12) "Spoofchecker" [145]=> string(13) "IntlException" [146]=> string(12) "IntlIterator" [147]=> string(17) "IntlBreakIterator" [148]=> string(26) "IntlRuleBasedBreakIterator" [149]=> string(26) "IntlCodePointBreakIterator" [150]=> string(17) "IntlPartsIterator" [151]=> string(10) "UConverter" [152]=> string(8) "IntlChar" } ["not_instantiable"]=> array(3) { [124]=> string(16) "SimpleXMLElement" [125]=> string(17) "SimpleXMLIterator" [140]=> string(14) "Transliterator" } }
Output for 7.0.6
array(2) { ["instantiable"]=> array(149) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(5) "Error" [4]=> string(10) "ParseError" [5]=> string(9) "TypeError" [6]=> string(15) "ArithmeticError" [7]=> string(19) "DivisionByZeroError" [8]=> string(7) "Closure" [9]=> string(9) "Generator" [10]=> string(24) "ClosedGeneratorException" [11]=> string(8) "DateTime" [12]=> string(17) "DateTimeImmutable" [13]=> string(12) "DateTimeZone" [14]=> string(12) "DateInterval" [15]=> string(10) "DatePeriod" [16]=> string(11) "LibXMLError" [17]=> string(7) "SQLite3" [18]=> string(11) "SQLite3Stmt" [19]=> string(13) "SQLite3Result" [20]=> string(12) "DOMException" [21]=> string(13) "DOMStringList" [22]=> string(11) "DOMNameList" [23]=> string(21) "DOMImplementationList" [24]=> string(23) "DOMImplementationSource" [25]=> string(17) "DOMImplementation" [26]=> string(7) "DOMNode" [27]=> string(16) "DOMNameSpaceNode" [28]=> string(19) "DOMDocumentFragment" [29]=> string(11) "DOMDocument" [30]=> string(11) "DOMNodeList" [31]=> string(15) "DOMNamedNodeMap" [32]=> string(16) "DOMCharacterData" [33]=> string(7) "DOMAttr" [34]=> string(10) "DOMElement" [35]=> string(7) "DOMText" [36]=> string(10) "DOMComment" [37]=> string(11) "DOMTypeinfo" [38]=> string(18) "DOMUserDataHandler" [39]=> string(11) "DOMDomError" [40]=> string(15) "DOMErrorHandler" [41]=> string(10) "DOMLocator" [42]=> string(16) "DOMConfiguration" [43]=> string(15) "DOMCdataSection" [44]=> string(15) "DOMDocumentType" [45]=> string(11) "DOMNotation" [46]=> string(9) "DOMEntity" [47]=> string(18) "DOMEntityReference" [48]=> string(24) "DOMProcessingInstruction" [49]=> string(15) "DOMStringExtend" [50]=> string(8) "DOMXPath" [51]=> string(5) "finfo" [52]=> string(14) "LogicException" [53]=> string(24) "BadFunctionCallException" [54]=> string(22) "BadMethodCallException" [55]=> string(15) "DomainException" [56]=> string(24) "InvalidArgumentException" [57]=> string(15) "LengthException" [58]=> string(19) "OutOfRangeException" [59]=> string(16) "RuntimeException" [60]=> string(20) "OutOfBoundsException" [61]=> string(17) "OverflowException" [62]=> string(14) "RangeException" [63]=> string(18) "UnderflowException" [64]=> string(24) "UnexpectedValueException" [65]=> string(25) "RecursiveIteratorIterator" [66]=> string(16) "IteratorIterator" [67]=> string(14) "FilterIterator" [68]=> string(23) "RecursiveFilterIterator" [69]=> string(22) "CallbackFilterIterator" [70]=> string(31) "RecursiveCallbackFilterIterator" [71]=> string(14) "ParentIterator" [72]=> string(13) "LimitIterator" [73]=> string(15) "CachingIterator" [74]=> string(24) "RecursiveCachingIterator" [75]=> string(16) "NoRewindIterator" [76]=> string(14) "AppendIterator" [77]=> string(16) "InfiniteIterator" [78]=> string(13) "RegexIterator" [79]=> string(22) "RecursiveRegexIterator" [80]=> string(13) "EmptyIterator" [81]=> string(21) "RecursiveTreeIterator" [82]=> string(11) "ArrayObject" [83]=> string(13) "ArrayIterator" [84]=> string(22) "RecursiveArrayIterator" [85]=> string(11) "SplFileInfo" [86]=> string(17) "DirectoryIterator" [87]=> string(18) "FilesystemIterator" [88]=> string(26) "RecursiveDirectoryIterator" [89]=> string(12) "GlobIterator" [90]=> string(13) "SplFileObject" [91]=> string(17) "SplTempFileObject" [92]=> string(19) "SplDoublyLinkedList" [93]=> string(8) "SplQueue" [94]=> string(8) "SplStack" [95]=> string(7) "SplHeap" [96]=> string(10) "SplMinHeap" [97]=> string(10) "SplMaxHeap" [98]=> string(16) "SplPriorityQueue" [99]=> string(13) "SplFixedArray" [100]=> string(16) "SplObjectStorage" [101]=> string(16) "MultipleIterator" [102]=> string(12) "PDOException" [103]=> string(3) "PDO" [104]=> string(12) "PDOStatement" [105]=> string(6) "PDORow" [106]=> string(14) "SessionHandler" [107]=> string(19) "ReflectionException" [108]=> string(10) "Reflection" [109]=> string(26) "ReflectionFunctionAbstract" [110]=> string(18) "ReflectionFunction" [111]=> string(19) "ReflectionGenerator" [112]=> string(19) "ReflectionParameter" [113]=> string(14) "ReflectionType" [114]=> string(16) "ReflectionMethod" [115]=> string(15) "ReflectionClass" [116]=> string(16) "ReflectionObject" [117]=> string(18) "ReflectionProperty" [118]=> string(19) "ReflectionExtension" [119]=> string(23) "ReflectionZendExtension" [120]=> string(22) "__PHP_Incomplete_Class" [121]=> string(15) "php_user_filter" [122]=> string(9) "Directory" [123]=> string(14) "AssertionError" [126]=> string(13) "PharException" [127]=> string(4) "Phar" [128]=> string(8) "PharData" [129]=> string(12) "PharFileInfo" [130]=> string(9) "XMLReader" [131]=> string(9) "XMLWriter" [132]=> string(8) "Collator" [133]=> string(15) "NumberFormatter" [134]=> string(10) "Normalizer" [135]=> string(6) "Locale" [136]=> string(16) "MessageFormatter" [137]=> string(17) "IntlDateFormatter" [138]=> string(14) "ResourceBundle" [140]=> string(12) "IntlTimeZone" [141]=> string(12) "IntlCalendar" [142]=> string(21) "IntlGregorianCalendar" [143]=> string(12) "Spoofchecker" [144]=> string(13) "IntlException" [145]=> string(12) "IntlIterator" [146]=> string(17) "IntlBreakIterator" [147]=> string(26) "IntlRuleBasedBreakIterator" [148]=> string(26) "IntlCodePointBreakIterator" [149]=> string(17) "IntlPartsIterator" [150]=> string(10) "UConverter" [151]=> string(8) "IntlChar" } ["not_instantiable"]=> array(3) { [124]=> string(16) "SimpleXMLElement" [125]=> string(17) "SimpleXMLIterator" [139]=> string(14) "Transliterator" } }
Output for 7.0.0 - 7.0.5
array(2) { ["instantiable"]=> array(131) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(5) "Error" [4]=> string(10) "ParseError" [5]=> string(9) "TypeError" [6]=> string(15) "ArithmeticError" [7]=> string(19) "DivisionByZeroError" [8]=> string(7) "Closure" [9]=> string(9) "Generator" [10]=> string(24) "ClosedGeneratorException" [11]=> string(8) "DateTime" [12]=> string(17) "DateTimeImmutable" [13]=> string(12) "DateTimeZone" [14]=> string(12) "DateInterval" [15]=> string(10) "DatePeriod" [16]=> string(11) "LibXMLError" [17]=> string(7) "SQLite3" [18]=> string(11) "SQLite3Stmt" [19]=> string(13) "SQLite3Result" [20]=> string(12) "DOMException" [21]=> string(13) "DOMStringList" [22]=> string(11) "DOMNameList" [23]=> string(21) "DOMImplementationList" [24]=> string(23) "DOMImplementationSource" [25]=> string(17) "DOMImplementation" [26]=> string(7) "DOMNode" [27]=> string(16) "DOMNameSpaceNode" [28]=> string(19) "DOMDocumentFragment" [29]=> string(11) "DOMDocument" [30]=> string(11) "DOMNodeList" [31]=> string(15) "DOMNamedNodeMap" [32]=> string(16) "DOMCharacterData" [33]=> string(7) "DOMAttr" [34]=> string(10) "DOMElement" [35]=> string(7) "DOMText" [36]=> string(10) "DOMComment" [37]=> string(11) "DOMTypeinfo" [38]=> string(18) "DOMUserDataHandler" [39]=> string(11) "DOMDomError" [40]=> string(15) "DOMErrorHandler" [41]=> string(10) "DOMLocator" [42]=> string(16) "DOMConfiguration" [43]=> string(15) "DOMCdataSection" [44]=> string(15) "DOMDocumentType" [45]=> string(11) "DOMNotation" [46]=> string(9) "DOMEntity" [47]=> string(18) "DOMEntityReference" [48]=> string(24) "DOMProcessingInstruction" [49]=> string(15) "DOMStringExtend" [50]=> string(8) "DOMXPath" [51]=> string(5) "finfo" [52]=> string(3) "GMP" [53]=> string(14) "LogicException" [54]=> string(24) "BadFunctionCallException" [55]=> string(22) "BadMethodCallException" [56]=> string(15) "DomainException" [57]=> string(24) "InvalidArgumentException" [58]=> string(15) "LengthException" [59]=> string(19) "OutOfRangeException" [60]=> string(16) "RuntimeException" [61]=> string(20) "OutOfBoundsException" [62]=> string(17) "OverflowException" [63]=> string(14) "RangeException" [64]=> string(18) "UnderflowException" [65]=> string(24) "UnexpectedValueException" [66]=> string(25) "RecursiveIteratorIterator" [67]=> string(16) "IteratorIterator" [68]=> string(14) "FilterIterator" [69]=> string(23) "RecursiveFilterIterator" [70]=> string(22) "CallbackFilterIterator" [71]=> string(31) "RecursiveCallbackFilterIterator" [72]=> string(14) "ParentIterator" [73]=> string(13) "LimitIterator" [74]=> string(15) "CachingIterator" [75]=> string(24) "RecursiveCachingIterator" [76]=> string(16) "NoRewindIterator" [77]=> string(14) "AppendIterator" [78]=> string(16) "InfiniteIterator" [79]=> string(13) "RegexIterator" [80]=> string(22) "RecursiveRegexIterator" [81]=> string(13) "EmptyIterator" [82]=> string(21) "RecursiveTreeIterator" [83]=> string(11) "ArrayObject" [84]=> string(13) "ArrayIterator" [85]=> string(22) "RecursiveArrayIterator" [86]=> string(11) "SplFileInfo" [87]=> string(17) "DirectoryIterator" [88]=> string(18) "FilesystemIterator" [89]=> string(26) "RecursiveDirectoryIterator" [90]=> string(12) "GlobIterator" [91]=> string(13) "SplFileObject" [92]=> string(17) "SplTempFileObject" [93]=> string(19) "SplDoublyLinkedList" [94]=> string(8) "SplQueue" [95]=> string(8) "SplStack" [96]=> string(7) "SplHeap" [97]=> string(10) "SplMinHeap" [98]=> string(10) "SplMaxHeap" [99]=> string(16) "SplPriorityQueue" [100]=> string(13) "SplFixedArray" [101]=> string(16) "SplObjectStorage" [102]=> string(16) "MultipleIterator" [103]=> string(12) "PDOException" [104]=> string(3) "PDO" [105]=> string(12) "PDOStatement" [106]=> string(6) "PDORow" [107]=> string(14) "SessionHandler" [108]=> string(19) "ReflectionException" [109]=> string(10) "Reflection" [110]=> string(26) "ReflectionFunctionAbstract" [111]=> string(18) "ReflectionFunction" [112]=> string(19) "ReflectionGenerator" [113]=> string(19) "ReflectionParameter" [114]=> string(14) "ReflectionType" [115]=> string(16) "ReflectionMethod" [116]=> string(15) "ReflectionClass" [117]=> string(16) "ReflectionObject" [118]=> string(18) "ReflectionProperty" [119]=> string(19) "ReflectionExtension" [120]=> string(23) "ReflectionZendExtension" [121]=> string(22) "__PHP_Incomplete_Class" [122]=> string(15) "php_user_filter" [123]=> string(9) "Directory" [124]=> string(14) "AssertionError" [127]=> string(13) "PharException" [128]=> string(4) "Phar" [129]=> string(8) "PharData" [130]=> string(12) "PharFileInfo" [131]=> string(9) "XMLReader" [132]=> string(9) "XMLWriter" } ["not_instantiable"]=> array(2) { [125]=> string(16) "SimpleXMLElement" [126]=> string(17) "SimpleXMLIterator" } }
Output for 5.6.28
array(2) { ["instantiable"]=> array(140) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(7) "Closure" [4]=> string(9) "Generator" [5]=> string(8) "DateTime" [6]=> string(17) "DateTimeImmutable" [7]=> string(12) "DateTimeZone" [8]=> string(12) "DateInterval" [9]=> string(10) "DatePeriod" [10]=> string(11) "LibXMLError" [11]=> string(7) "SQLite3" [12]=> string(11) "SQLite3Stmt" [13]=> string(13) "SQLite3Result" [14]=> string(12) "DOMException" [15]=> string(13) "DOMStringList" [16]=> string(11) "DOMNameList" [17]=> string(21) "DOMImplementationList" [18]=> string(23) "DOMImplementationSource" [19]=> string(17) "DOMImplementation" [20]=> string(7) "DOMNode" [21]=> string(16) "DOMNameSpaceNode" [22]=> string(19) "DOMDocumentFragment" [23]=> string(11) "DOMDocument" [24]=> string(11) "DOMNodeList" [25]=> string(15) "DOMNamedNodeMap" [26]=> string(16) "DOMCharacterData" [27]=> string(7) "DOMAttr" [28]=> string(10) "DOMElement" [29]=> string(7) "DOMText" [30]=> string(10) "DOMComment" [31]=> string(11) "DOMTypeinfo" [32]=> string(18) "DOMUserDataHandler" [33]=> string(11) "DOMDomError" [34]=> string(15) "DOMErrorHandler" [35]=> string(10) "DOMLocator" [36]=> string(16) "DOMConfiguration" [37]=> string(15) "DOMCdataSection" [38]=> string(15) "DOMDocumentType" [39]=> string(11) "DOMNotation" [40]=> string(9) "DOMEntity" [41]=> string(18) "DOMEntityReference" [42]=> string(24) "DOMProcessingInstruction" [43]=> string(15) "DOMStringExtend" [44]=> string(8) "DOMXPath" [45]=> string(5) "finfo" [46]=> string(14) "LogicException" [47]=> string(24) "BadFunctionCallException" [48]=> string(22) "BadMethodCallException" [49]=> string(15) "DomainException" [50]=> string(24) "InvalidArgumentException" [51]=> string(15) "LengthException" [52]=> string(19) "OutOfRangeException" [53]=> string(16) "RuntimeException" [54]=> string(20) "OutOfBoundsException" [55]=> string(17) "OverflowException" [56]=> string(14) "RangeException" [57]=> string(18) "UnderflowException" [58]=> string(24) "UnexpectedValueException" [59]=> string(25) "RecursiveIteratorIterator" [60]=> string(16) "IteratorIterator" [61]=> string(14) "FilterIterator" [62]=> string(23) "RecursiveFilterIterator" [63]=> string(22) "CallbackFilterIterator" [64]=> string(31) "RecursiveCallbackFilterIterator" [65]=> string(14) "ParentIterator" [66]=> string(13) "LimitIterator" [67]=> string(15) "CachingIterator" [68]=> string(24) "RecursiveCachingIterator" [69]=> string(16) "NoRewindIterator" [70]=> string(14) "AppendIterator" [71]=> string(16) "InfiniteIterator" [72]=> string(13) "RegexIterator" [73]=> string(22) "RecursiveRegexIterator" [74]=> string(13) "EmptyIterator" [75]=> string(21) "RecursiveTreeIterator" [76]=> string(11) "ArrayObject" [77]=> string(13) "ArrayIterator" [78]=> string(22) "RecursiveArrayIterator" [79]=> string(11) "SplFileInfo" [80]=> string(17) "DirectoryIterator" [81]=> string(18) "FilesystemIterator" [82]=> string(26) "RecursiveDirectoryIterator" [83]=> string(12) "GlobIterator" [84]=> string(13) "SplFileObject" [85]=> string(17) "SplTempFileObject" [86]=> string(19) "SplDoublyLinkedList" [87]=> string(8) "SplQueue" [88]=> string(8) "SplStack" [89]=> string(7) "SplHeap" [90]=> string(10) "SplMinHeap" [91]=> string(10) "SplMaxHeap" [92]=> string(16) "SplPriorityQueue" [93]=> string(13) "SplFixedArray" [94]=> string(16) "SplObjectStorage" [95]=> string(16) "MultipleIterator" [96]=> string(12) "PDOException" [97]=> string(3) "PDO" [98]=> string(12) "PDOStatement" [99]=> string(6) "PDORow" [100]=> string(14) "SessionHandler" [101]=> string(19) "ReflectionException" [102]=> string(10) "Reflection" [103]=> string(26) "ReflectionFunctionAbstract" [104]=> string(18) "ReflectionFunction" [105]=> string(19) "ReflectionParameter" [106]=> string(16) "ReflectionMethod" [107]=> string(15) "ReflectionClass" [108]=> string(16) "ReflectionObject" [109]=> string(18) "ReflectionProperty" [110]=> string(19) "ReflectionExtension" [111]=> string(23) "ReflectionZendExtension" [112]=> string(22) "__PHP_Incomplete_Class" [113]=> string(15) "php_user_filter" [114]=> string(9) "Directory" [117]=> string(13) "PharException" [118]=> string(4) "Phar" [119]=> string(8) "PharData" [120]=> string(12) "PharFileInfo" [121]=> string(9) "XMLReader" [122]=> string(9) "XMLWriter" [123]=> string(3) "GMP" [124]=> string(8) "Collator" [125]=> string(15) "NumberFormatter" [126]=> string(10) "Normalizer" [127]=> string(6) "Locale" [128]=> string(16) "MessageFormatter" [129]=> string(17) "IntlDateFormatter" [130]=> string(14) "ResourceBundle" [132]=> string(12) "IntlTimeZone" [133]=> string(12) "IntlCalendar" [134]=> string(21) "IntlGregorianCalendar" [135]=> string(12) "Spoofchecker" [136]=> string(13) "IntlException" [137]=> string(12) "IntlIterator" [138]=> string(17) "IntlBreakIterator" [139]=> string(26) "IntlRuleBasedBreakIterator" [140]=> string(26) "IntlCodePointBreakIterator" [141]=> string(17) "IntlPartsIterator" [142]=> string(10) "UConverter" } ["not_instantiable"]=> array(3) { [115]=> string(16) "SimpleXMLElement" [116]=> string(17) "SimpleXMLIterator" [131]=> string(14) "Transliterator" } }
Output for 5.6.21
array(2) { ["instantiable"]=> array(139) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(7) "Closure" [4]=> string(9) "Generator" [5]=> string(8) "DateTime" [6]=> string(17) "DateTimeImmutable" [7]=> string(12) "DateTimeZone" [8]=> string(12) "DateInterval" [9]=> string(10) "DatePeriod" [10]=> string(11) "LibXMLError" [11]=> string(7) "SQLite3" [12]=> string(11) "SQLite3Stmt" [13]=> string(13) "SQLite3Result" [14]=> string(12) "DOMException" [15]=> string(13) "DOMStringList" [16]=> string(11) "DOMNameList" [17]=> string(21) "DOMImplementationList" [18]=> string(23) "DOMImplementationSource" [19]=> string(17) "DOMImplementation" [20]=> string(7) "DOMNode" [21]=> string(16) "DOMNameSpaceNode" [22]=> string(19) "DOMDocumentFragment" [23]=> string(11) "DOMDocument" [24]=> string(11) "DOMNodeList" [25]=> string(15) "DOMNamedNodeMap" [26]=> string(16) "DOMCharacterData" [27]=> string(7) "DOMAttr" [28]=> string(10) "DOMElement" [29]=> string(7) "DOMText" [30]=> string(10) "DOMComment" [31]=> string(11) "DOMTypeinfo" [32]=> string(18) "DOMUserDataHandler" [33]=> string(11) "DOMDomError" [34]=> string(15) "DOMErrorHandler" [35]=> string(10) "DOMLocator" [36]=> string(16) "DOMConfiguration" [37]=> string(15) "DOMCdataSection" [38]=> string(15) "DOMDocumentType" [39]=> string(11) "DOMNotation" [40]=> string(9) "DOMEntity" [41]=> string(18) "DOMEntityReference" [42]=> string(24) "DOMProcessingInstruction" [43]=> string(15) "DOMStringExtend" [44]=> string(8) "DOMXPath" [45]=> string(5) "finfo" [46]=> string(14) "LogicException" [47]=> string(24) "BadFunctionCallException" [48]=> string(22) "BadMethodCallException" [49]=> string(15) "DomainException" [50]=> string(24) "InvalidArgumentException" [51]=> string(15) "LengthException" [52]=> string(19) "OutOfRangeException" [53]=> string(16) "RuntimeException" [54]=> string(20) "OutOfBoundsException" [55]=> string(17) "OverflowException" [56]=> string(14) "RangeException" [57]=> string(18) "UnderflowException" [58]=> string(24) "UnexpectedValueException" [59]=> string(25) "RecursiveIteratorIterator" [60]=> string(16) "IteratorIterator" [61]=> string(14) "FilterIterator" [62]=> string(23) "RecursiveFilterIterator" [63]=> string(22) "CallbackFilterIterator" [64]=> string(31) "RecursiveCallbackFilterIterator" [65]=> string(14) "ParentIterator" [66]=> string(13) "LimitIterator" [67]=> string(15) "CachingIterator" [68]=> string(24) "RecursiveCachingIterator" [69]=> string(16) "NoRewindIterator" [70]=> string(14) "AppendIterator" [71]=> string(16) "InfiniteIterator" [72]=> string(13) "RegexIterator" [73]=> string(22) "RecursiveRegexIterator" [74]=> string(13) "EmptyIterator" [75]=> string(21) "RecursiveTreeIterator" [76]=> string(11) "ArrayObject" [77]=> string(13) "ArrayIterator" [78]=> string(22) "RecursiveArrayIterator" [79]=> string(11) "SplFileInfo" [80]=> string(17) "DirectoryIterator" [81]=> string(18) "FilesystemIterator" [82]=> string(26) "RecursiveDirectoryIterator" [83]=> string(12) "GlobIterator" [84]=> string(13) "SplFileObject" [85]=> string(17) "SplTempFileObject" [86]=> string(19) "SplDoublyLinkedList" [87]=> string(8) "SplQueue" [88]=> string(8) "SplStack" [89]=> string(7) "SplHeap" [90]=> string(10) "SplMinHeap" [91]=> string(10) "SplMaxHeap" [92]=> string(16) "SplPriorityQueue" [93]=> string(13) "SplFixedArray" [94]=> string(16) "SplObjectStorage" [95]=> string(16) "MultipleIterator" [96]=> string(12) "PDOException" [97]=> string(3) "PDO" [98]=> string(12) "PDOStatement" [99]=> string(6) "PDORow" [100]=> string(14) "SessionHandler" [101]=> string(19) "ReflectionException" [102]=> string(10) "Reflection" [103]=> string(26) "ReflectionFunctionAbstract" [104]=> string(18) "ReflectionFunction" [105]=> string(19) "ReflectionParameter" [106]=> string(16) "ReflectionMethod" [107]=> string(15) "ReflectionClass" [108]=> string(16) "ReflectionObject" [109]=> string(18) "ReflectionProperty" [110]=> string(19) "ReflectionExtension" [111]=> string(23) "ReflectionZendExtension" [112]=> string(22) "__PHP_Incomplete_Class" [113]=> string(15) "php_user_filter" [114]=> string(9) "Directory" [117]=> string(13) "PharException" [118]=> string(4) "Phar" [119]=> string(8) "PharData" [120]=> string(12) "PharFileInfo" [121]=> string(9) "XMLReader" [122]=> string(9) "XMLWriter" [123]=> string(8) "Collator" [124]=> string(15) "NumberFormatter" [125]=> string(10) "Normalizer" [126]=> string(6) "Locale" [127]=> string(16) "MessageFormatter" [128]=> string(17) "IntlDateFormatter" [129]=> string(14) "ResourceBundle" [131]=> string(12) "IntlTimeZone" [132]=> string(12) "IntlCalendar" [133]=> string(21) "IntlGregorianCalendar" [134]=> string(12) "Spoofchecker" [135]=> string(13) "IntlException" [136]=> string(12) "IntlIterator" [137]=> string(17) "IntlBreakIterator" [138]=> string(26) "IntlRuleBasedBreakIterator" [139]=> string(26) "IntlCodePointBreakIterator" [140]=> string(17) "IntlPartsIterator" [141]=> string(10) "UConverter" } ["not_instantiable"]=> array(3) { [115]=> string(16) "SimpleXMLElement" [116]=> string(17) "SimpleXMLIterator" [130]=> string(14) "Transliterator" } }
Output for 5.6.0 - 5.6.20
array(2) { ["instantiable"]=> array(122) { [0]=> string(8) "stdClass" [1]=> string(9) "Exception" [2]=> string(14) "ErrorException" [3]=> string(7) "Closure" [4]=> string(9) "Generator" [5]=> string(8) "DateTime" [6]=> string(17) "DateTimeImmutable" [7]=> string(12) "DateTimeZone" [8]=> string(12) "DateInterval" [9]=> string(10) "DatePeriod" [10]=> string(11) "LibXMLError" [11]=> string(7) "SQLite3" [12]=> string(11) "SQLite3Stmt" [13]=> string(13) "SQLite3Result" [14]=> string(12) "DOMException" [15]=> string(13) "DOMStringList" [16]=> string(11) "DOMNameList" [17]=> string(21) "DOMImplementationList" [18]=> string(23) "DOMImplementationSource" [19]=> string(17) "DOMImplementation" [20]=> string(7) "DOMNode" [21]=> string(16) "DOMNameSpaceNode" [22]=> string(19) "DOMDocumentFragment" [23]=> string(11) "DOMDocument" [24]=> string(11) "DOMNodeList" [25]=> string(15) "DOMNamedNodeMap" [26]=> string(16) "DOMCharacterData" [27]=> string(7) "DOMAttr" [28]=> string(10) "DOMElement" [29]=> string(7) "DOMText" [30]=> string(10) "DOMComment" [31]=> string(11) "DOMTypeinfo" [32]=> string(18) "DOMUserDataHandler" [33]=> string(11) "DOMDomError" [34]=> string(15) "DOMErrorHandler" [35]=> string(10) "DOMLocator" [36]=> string(16) "DOMConfiguration" [37]=> string(15) "DOMCdataSection" [38]=> string(15) "DOMDocumentType" [39]=> string(11) "DOMNotation" [40]=> string(9) "DOMEntity" [41]=> string(18) "DOMEntityReference" [42]=> string(24) "DOMProcessingInstruction" [43]=> string(15) "DOMStringExtend" [44]=> string(8) "DOMXPath" [45]=> string(5) "finfo" [46]=> string(3) "GMP" [47]=> string(14) "LogicException" [48]=> string(24) "BadFunctionCallException" [49]=> string(22) "BadMethodCallException" [50]=> string(15) "DomainException" [51]=> string(24) "InvalidArgumentException" [52]=> string(15) "LengthException" [53]=> string(19) "OutOfRangeException" [54]=> string(16) "RuntimeException" [55]=> string(20) "OutOfBoundsException" [56]=> string(17) "OverflowException" [57]=> string(14) "RangeException" [58]=> string(18) "UnderflowException" [59]=> string(24) "UnexpectedValueException" [60]=> string(25) "RecursiveIteratorIterator" [61]=> string(16) "IteratorIterator" [62]=> string(14) "FilterIterator" [63]=> string(23) "RecursiveFilterIterator" [64]=> string(22) "CallbackFilterIterator" [65]=> string(31) "RecursiveCallbackFilterIterator" [66]=> string(14) "ParentIterator" [67]=> string(13) "LimitIterator" [68]=> string(15) "CachingIterator" [69]=> string(24) "RecursiveCachingIterator" [70]=> string(16) "NoRewindIterator" [71]=> string(14) "AppendIterator" [72]=> string(16) "InfiniteIterator" [73]=> string(13) "RegexIterator" [74]=> string(22) "RecursiveRegexIterator" [75]=> string(13) "EmptyIterator" [76]=> string(21) "RecursiveTreeIterator" [77]=> string(11) "ArrayObject" [78]=> string(13) "ArrayIterator" [79]=> string(22) "RecursiveArrayIterator" [80]=> string(11) "SplFileInfo" [81]=> string(17) "DirectoryIterator" [82]=> string(18) "FilesystemIterator" [83]=> string(26) "RecursiveDirectoryIterator" [84]=> string(12) "GlobIterator" [85]=> string(13) "SplFileObject" [86]=> string(17) "SplTempFileObject" [87]=> string(19) "SplDoublyLinkedList" [88]=> string(8) "SplQueue" [89]=> string(8) "SplStack" [90]=> string(7) "SplHeap" [91]=> string(10) "SplMinHeap" [92]=> string(10) "SplMaxHeap" [93]=> string(16) "SplPriorityQueue" [94]=> string(13) "SplFixedArray" [95]=> string(16) "SplObjectStorage" [96]=> string(16) "MultipleIterator" [97]=> string(12) "PDOException" [98]=> string(3) "PDO" [99]=> string(12) "PDOStatement" [100]=> string(6) "PDORow" [101]=> string(14) "SessionHandler" [102]=> string(19) "ReflectionException" [103]=> string(10) "Reflection" [104]=> string(26) "ReflectionFunctionAbstract" [105]=> string(18) "ReflectionFunction" [106]=> string(19) "ReflectionParameter" [107]=> string(16) "ReflectionMethod" [108]=> string(15) "ReflectionClass" [109]=> string(16) "ReflectionObject" [110]=> string(18) "ReflectionProperty" [111]=> string(19) "ReflectionExtension" [112]=> string(23) "ReflectionZendExtension" [113]=> string(22) "__PHP_Incomplete_Class" [114]=> string(15) "php_user_filter" [115]=> string(9) "Directory" [118]=> string(13) "PharException" [119]=> string(4) "Phar" [120]=> string(8) "PharData" [121]=> string(12) "PharFileInfo" [122]=> string(9) "XMLReader" [123]=> string(9) "XMLWriter" } ["not_instantiable"]=> array(2) { [116]=> string(16) "SimpleXMLElement" [117]=> string(17) "SimpleXMLIterator" } }
Output for 5.4.0 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/0SqPU on line 22
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '.', expecting '&' or T_VARIABLE in /in/0SqPU on line 22
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/0SqPU on line 21
Process exited with code 255.
Output for 5.1.0 - 5.2.2
<br /> <b>Parse error</b>: syntax error, unexpected T_FUNCTION in <b>/in/0SqPU</b> on line <b>21</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<br /> <b>Parse error</b>: parse error, unexpected T_FUNCTION in <b>/in/0SqPU</b> on line <b>21</b><br />
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<br /> <b>Parse error</b>: syntax error, unexpected T_OBJECT_OPERATOR in <b>/in/0SqPU</b> on line <b>12</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
<br /> <b>Parse error</b>: parse error, unexpected T_OBJECT_OPERATOR in <b>/in/0SqPU</b> on line <b>12</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error in <b>/in/0SqPU</b> on line <b>12</b><br />
Process exited with code 255.