3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(array_filter(get_declared_classes(), function($n) { $c=new ReflectionClass($n);return $c->isCloneable(); }));
Output for 7.3.0 - 7.3.1
Array ( [0] => stdClass [10] => Closure [13] => DateTime [14] => DateTimeImmutable [15] => DateTimeZone [16] => DateInterval [17] => DatePeriod [18] => LibXMLError [23] => DOMStringList [24] => DOMNameList [25] => DOMImplementationList [26] => DOMImplementationSource [27] => DOMImplementation [28] => DOMNode [29] => DOMNameSpaceNode [30] => DOMDocumentFragment [31] => DOMDocument [32] => DOMNodeList [33] => DOMNamedNodeMap [34] => DOMCharacterData [35] => DOMAttr [36] => DOMElement [37] => DOMText [38] => DOMComment [39] => DOMTypeinfo [40] => DOMUserDataHandler [41] => DOMDomError [42] => DOMErrorHandler [43] => DOMLocator [44] => DOMConfiguration [45] => DOMCdataSection [46] => DOMDocumentType [47] => DOMNotation [48] => DOMEntity [49] => DOMEntityReference [50] => DOMProcessingInstruction [51] => DOMStringExtend [52] => DOMXPath [53] => finfo [54] => HashContext [84] => EmptyIterator [86] => ArrayObject [87] => ArrayIterator [88] => RecursiveArrayIterator [89] => SplFileInfo [90] => DirectoryIterator [91] => FilesystemIterator [92] => RecursiveDirectoryIterator [93] => GlobIterator [94] => SplFileObject [95] => SplTempFileObject [96] => SplDoublyLinkedList [97] => SplQueue [98] => SplStack [100] => SplMinHeap [101] => SplMaxHeap [102] => SplPriorityQueue [103] => SplFixedArray [104] => SplObjectStorage [105] => MultipleIterator [107] => PDO [108] => PDOStatement [110] => SessionHandler [112] => Reflection [126] => __PHP_Incomplete_Class [127] => php_user_filter [128] => Directory [130] => SimpleXMLElement [131] => SimpleXMLIterator [133] => Phar [134] => PharData [135] => PharFileInfo [138] => GMP [140] => NumberFormatter [141] => Normalizer [142] => Locale [143] => MessageFormatter [144] => IntlDateFormatter [146] => Transliterator [147] => IntlTimeZone [148] => IntlCalendar [149] => IntlGregorianCalendar [150] => Spoofchecker [153] => IntlBreakIterator [154] => IntlRuleBasedBreakIterator [155] => IntlCodePointBreakIterator [157] => UConverter [158] => IntlChar )
Output for 7.2.0 - 7.2.13
Array ( [0] => stdClass [9] => Closure [12] => DateTime [13] => DateTimeImmutable [14] => DateTimeZone [15] => DateInterval [16] => DatePeriod [17] => LibXMLError [22] => DOMStringList [23] => DOMNameList [24] => DOMImplementationList [25] => DOMImplementationSource [26] => DOMImplementation [27] => DOMNode [28] => DOMNameSpaceNode [29] => DOMDocumentFragment [30] => DOMDocument [31] => DOMNodeList [32] => DOMNamedNodeMap [33] => DOMCharacterData [34] => DOMAttr [35] => DOMElement [36] => DOMText [37] => DOMComment [38] => DOMTypeinfo [39] => DOMUserDataHandler [40] => DOMDomError [41] => DOMErrorHandler [42] => DOMLocator [43] => DOMConfiguration [44] => DOMCdataSection [45] => DOMDocumentType [46] => DOMNotation [47] => DOMEntity [48] => DOMEntityReference [49] => DOMProcessingInstruction [50] => DOMStringExtend [51] => DOMXPath [52] => finfo [53] => HashContext [82] => EmptyIterator [84] => ArrayObject [85] => ArrayIterator [86] => RecursiveArrayIterator [87] => SplFileInfo [88] => DirectoryIterator [89] => FilesystemIterator [90] => RecursiveDirectoryIterator [91] => GlobIterator [92] => SplFileObject [93] => SplTempFileObject [94] => SplDoublyLinkedList [95] => SplQueue [96] => SplStack [98] => SplMinHeap [99] => SplMaxHeap [100] => SplPriorityQueue [101] => SplFixedArray [102] => SplObjectStorage [103] => MultipleIterator [105] => PDO [106] => PDOStatement [108] => SessionHandler [110] => Reflection [124] => __PHP_Incomplete_Class [125] => php_user_filter [126] => Directory [128] => SimpleXMLElement [129] => SimpleXMLIterator [131] => Phar [132] => PharData [133] => PharFileInfo [136] => GMP [138] => NumberFormatter [139] => Normalizer [140] => Locale [141] => MessageFormatter [142] => IntlDateFormatter [144] => Transliterator [145] => IntlTimeZone [146] => IntlCalendar [147] => IntlGregorianCalendar [148] => Spoofchecker [151] => IntlBreakIterator [152] => IntlRuleBasedBreakIterator [153] => IntlCodePointBreakIterator [155] => UConverter [156] => IntlChar )
Output for 7.1.0 - 7.1.25
Array ( [0] => stdClass [9] => Closure [12] => DateTime [13] => DateTimeImmutable [14] => DateTimeZone [15] => DateInterval [16] => DatePeriod [17] => LibXMLError [22] => DOMStringList [23] => DOMNameList [24] => DOMImplementationList [25] => DOMImplementationSource [26] => DOMImplementation [27] => DOMNode [28] => DOMNameSpaceNode [29] => DOMDocumentFragment [30] => DOMDocument [31] => DOMNodeList [32] => DOMNamedNodeMap [33] => DOMCharacterData [34] => DOMAttr [35] => DOMElement [36] => DOMText [37] => DOMComment [38] => DOMTypeinfo [39] => DOMUserDataHandler [40] => DOMDomError [41] => DOMErrorHandler [42] => DOMLocator [43] => DOMConfiguration [44] => DOMCdataSection [45] => DOMDocumentType [46] => DOMNotation [47] => DOMEntity [48] => DOMEntityReference [49] => DOMProcessingInstruction [50] => DOMStringExtend [51] => DOMXPath [52] => finfo [81] => EmptyIterator [83] => ArrayObject [84] => ArrayIterator [85] => RecursiveArrayIterator [86] => SplFileInfo [87] => DirectoryIterator [88] => FilesystemIterator [89] => RecursiveDirectoryIterator [90] => GlobIterator [91] => SplFileObject [92] => SplTempFileObject [93] => SplDoublyLinkedList [94] => SplQueue [95] => SplStack [97] => SplMinHeap [98] => SplMaxHeap [99] => SplPriorityQueue [100] => SplFixedArray [101] => SplObjectStorage [102] => MultipleIterator [104] => PDO [105] => PDOStatement [107] => SessionHandler [109] => Reflection [123] => __PHP_Incomplete_Class [124] => php_user_filter [125] => Directory [127] => SimpleXMLElement [128] => SimpleXMLIterator [130] => Phar [131] => PharData [132] => PharFileInfo [135] => GMP [137] => NumberFormatter [138] => Normalizer [139] => Locale [140] => MessageFormatter [141] => IntlDateFormatter [143] => Transliterator [144] => IntlTimeZone [145] => IntlCalendar [146] => IntlGregorianCalendar [147] => Spoofchecker [150] => IntlBreakIterator [151] => IntlRuleBasedBreakIterator [152] => IntlCodePointBreakIterator [154] => UConverter [155] => IntlChar )
Output for 7.0.20
Array ( [0] => stdClass [8] => Closure [11] => DateTime [12] => DateTimeImmutable [13] => DateTimeZone [14] => DateInterval [15] => DatePeriod [16] => LibXMLError [21] => DOMStringList [22] => DOMNameList [23] => DOMImplementationList [24] => DOMImplementationSource [25] => DOMImplementation [26] => DOMNode [27] => DOMNameSpaceNode [28] => DOMDocumentFragment [29] => DOMDocument [30] => DOMNodeList [31] => DOMNamedNodeMap [32] => DOMCharacterData [33] => DOMAttr [34] => DOMElement [35] => DOMText [36] => DOMComment [37] => DOMTypeinfo [38] => DOMUserDataHandler [39] => DOMDomError [40] => DOMErrorHandler [41] => DOMLocator [42] => DOMConfiguration [43] => DOMCdataSection [44] => DOMDocumentType [45] => DOMNotation [46] => DOMEntity [47] => DOMEntityReference [48] => DOMProcessingInstruction [49] => DOMStringExtend [50] => DOMXPath [51] => finfo [80] => EmptyIterator [82] => ArrayObject [83] => ArrayIterator [84] => RecursiveArrayIterator [85] => SplFileInfo [86] => DirectoryIterator [87] => FilesystemIterator [88] => RecursiveDirectoryIterator [89] => GlobIterator [90] => SplFileObject [91] => SplTempFileObject [92] => SplDoublyLinkedList [93] => SplQueue [94] => SplStack [96] => SplMinHeap [97] => SplMaxHeap [98] => SplPriorityQueue [99] => SplFixedArray [100] => SplObjectStorage [101] => MultipleIterator [103] => PDO [104] => PDOStatement [106] => SessionHandler [108] => Reflection [120] => __PHP_Incomplete_Class [121] => php_user_filter [122] => Directory [124] => SimpleXMLElement [125] => SimpleXMLIterator [127] => Phar [128] => PharData [129] => PharFileInfo [132] => GMP [134] => NumberFormatter [135] => Normalizer [136] => Locale [137] => MessageFormatter [138] => IntlDateFormatter [140] => Transliterator [141] => IntlTimeZone [142] => IntlCalendar [143] => IntlGregorianCalendar [144] => Spoofchecker [147] => IntlBreakIterator [148] => IntlRuleBasedBreakIterator [149] => IntlCodePointBreakIterator [151] => UConverter [152] => IntlChar )
Output for 7.0.6 - 7.0.9
Array ( [0] => stdClass [8] => Closure [11] => DateTime [12] => DateTimeImmutable [13] => DateTimeZone [14] => DateInterval [15] => DatePeriod [16] => LibXMLError [21] => DOMStringList [22] => DOMNameList [23] => DOMImplementationList [24] => DOMImplementationSource [25] => DOMImplementation [26] => DOMNode [27] => DOMNameSpaceNode [28] => DOMDocumentFragment [29] => DOMDocument [30] => DOMNodeList [31] => DOMNamedNodeMap [32] => DOMCharacterData [33] => DOMAttr [34] => DOMElement [35] => DOMText [36] => DOMComment [37] => DOMTypeinfo [38] => DOMUserDataHandler [39] => DOMDomError [40] => DOMErrorHandler [41] => DOMLocator [42] => DOMConfiguration [43] => DOMCdataSection [44] => DOMDocumentType [45] => DOMNotation [46] => DOMEntity [47] => DOMEntityReference [48] => DOMProcessingInstruction [49] => DOMStringExtend [50] => DOMXPath [51] => finfo [80] => EmptyIterator [82] => ArrayObject [83] => ArrayIterator [84] => RecursiveArrayIterator [85] => SplFileInfo [86] => DirectoryIterator [87] => FilesystemIterator [88] => RecursiveDirectoryIterator [89] => GlobIterator [90] => SplFileObject [91] => SplTempFileObject [92] => SplDoublyLinkedList [93] => SplQueue [94] => SplStack [96] => SplMinHeap [97] => SplMaxHeap [98] => SplPriorityQueue [99] => SplFixedArray [100] => SplObjectStorage [101] => MultipleIterator [103] => PDO [104] => PDOStatement [106] => SessionHandler [108] => Reflection [120] => __PHP_Incomplete_Class [121] => php_user_filter [122] => Directory [124] => SimpleXMLElement [125] => SimpleXMLIterator [127] => Phar [128] => PharData [129] => PharFileInfo [133] => NumberFormatter [134] => Normalizer [135] => Locale [136] => MessageFormatter [137] => IntlDateFormatter [139] => Transliterator [140] => IntlTimeZone [141] => IntlCalendar [142] => IntlGregorianCalendar [143] => Spoofchecker [146] => IntlBreakIterator [147] => IntlRuleBasedBreakIterator [148] => IntlCodePointBreakIterator [150] => UConverter [151] => IntlChar )
Output for 7.0.0 - 7.0.5
Array ( [0] => stdClass [8] => Closure [11] => DateTime [12] => DateTimeImmutable [13] => DateTimeZone [14] => DateInterval [15] => DatePeriod [16] => LibXMLError [21] => DOMStringList [22] => DOMNameList [23] => DOMImplementationList [24] => DOMImplementationSource [25] => DOMImplementation [26] => DOMNode [27] => DOMNameSpaceNode [28] => DOMDocumentFragment [29] => DOMDocument [30] => DOMNodeList [31] => DOMNamedNodeMap [32] => DOMCharacterData [33] => DOMAttr [34] => DOMElement [35] => DOMText [36] => DOMComment [37] => DOMTypeinfo [38] => DOMUserDataHandler [39] => DOMDomError [40] => DOMErrorHandler [41] => DOMLocator [42] => DOMConfiguration [43] => DOMCdataSection [44] => DOMDocumentType [45] => DOMNotation [46] => DOMEntity [47] => DOMEntityReference [48] => DOMProcessingInstruction [49] => DOMStringExtend [50] => DOMXPath [51] => finfo [52] => GMP [81] => EmptyIterator [83] => ArrayObject [84] => ArrayIterator [85] => RecursiveArrayIterator [86] => SplFileInfo [87] => DirectoryIterator [88] => FilesystemIterator [89] => RecursiveDirectoryIterator [90] => GlobIterator [91] => SplFileObject [92] => SplTempFileObject [93] => SplDoublyLinkedList [94] => SplQueue [95] => SplStack [97] => SplMinHeap [98] => SplMaxHeap [99] => SplPriorityQueue [100] => SplFixedArray [101] => SplObjectStorage [102] => MultipleIterator [104] => PDO [105] => PDOStatement [107] => SessionHandler [109] => Reflection [121] => __PHP_Incomplete_Class [122] => php_user_filter [123] => Directory [125] => SimpleXMLElement [126] => SimpleXMLIterator [128] => Phar [129] => PharData [130] => PharFileInfo [134] => NumberFormatter [135] => Normalizer [136] => Locale [137] => MessageFormatter [138] => IntlDateFormatter [140] => Transliterator [141] => IntlTimeZone [142] => IntlCalendar [143] => IntlGregorianCalendar [144] => Spoofchecker [147] => IntlBreakIterator [148] => IntlRuleBasedBreakIterator [149] => IntlCodePointBreakIterator [151] => UConverter [152] => IntlChar )
Output for 5.6.21 - 5.6.24
Array ( [0] => stdClass [3] => Closure [5] => DateTime [6] => DateTimeImmutable [7] => DateTimeZone [8] => DateInterval [9] => DatePeriod [10] => LibXMLError [15] => DOMStringList [16] => DOMNameList [17] => DOMImplementationList [18] => DOMImplementationSource [19] => DOMImplementation [20] => DOMNode [21] => DOMNameSpaceNode [22] => DOMDocumentFragment [23] => DOMDocument [24] => DOMNodeList [25] => DOMNamedNodeMap [26] => DOMCharacterData [27] => DOMAttr [28] => DOMElement [29] => DOMText [30] => DOMComment [31] => DOMTypeinfo [32] => DOMUserDataHandler [33] => DOMDomError [34] => DOMErrorHandler [35] => DOMLocator [36] => DOMConfiguration [37] => DOMCdataSection [38] => DOMDocumentType [39] => DOMNotation [40] => DOMEntity [41] => DOMEntityReference [42] => DOMProcessingInstruction [43] => DOMStringExtend [44] => DOMXPath [45] => finfo [74] => EmptyIterator [76] => ArrayObject [77] => ArrayIterator [78] => RecursiveArrayIterator [79] => SplFileInfo [80] => DirectoryIterator [81] => FilesystemIterator [82] => RecursiveDirectoryIterator [83] => GlobIterator [84] => SplFileObject [85] => SplTempFileObject [86] => SplDoublyLinkedList [87] => SplQueue [88] => SplStack [90] => SplMinHeap [91] => SplMaxHeap [92] => SplPriorityQueue [93] => SplFixedArray [94] => SplObjectStorage [95] => MultipleIterator [97] => PDO [98] => PDOStatement [100] => SessionHandler [102] => Reflection [112] => __PHP_Incomplete_Class [113] => php_user_filter [114] => Directory [115] => SimpleXMLElement [116] => SimpleXMLIterator [118] => Phar [119] => PharData [120] => PharFileInfo [124] => NumberFormatter [125] => Normalizer [126] => Locale [127] => MessageFormatter [128] => IntlDateFormatter [130] => Transliterator [131] => IntlTimeZone [132] => IntlCalendar [133] => IntlGregorianCalendar [134] => Spoofchecker [137] => IntlBreakIterator [138] => IntlRuleBasedBreakIterator [139] => IntlCodePointBreakIterator [141] => UConverter )
Output for 5.6.0 - 5.6.20
Array ( [0] => stdClass [3] => Closure [5] => DateTime [6] => DateTimeImmutable [7] => DateTimeZone [8] => DateInterval [9] => DatePeriod [10] => LibXMLError [15] => DOMStringList [16] => DOMNameList [17] => DOMImplementationList [18] => DOMImplementationSource [19] => DOMImplementation [20] => DOMNode [21] => DOMNameSpaceNode [22] => DOMDocumentFragment [23] => DOMDocument [24] => DOMNodeList [25] => DOMNamedNodeMap [26] => DOMCharacterData [27] => DOMAttr [28] => DOMElement [29] => DOMText [30] => DOMComment [31] => DOMTypeinfo [32] => DOMUserDataHandler [33] => DOMDomError [34] => DOMErrorHandler [35] => DOMLocator [36] => DOMConfiguration [37] => DOMCdataSection [38] => DOMDocumentType [39] => DOMNotation [40] => DOMEntity [41] => DOMEntityReference [42] => DOMProcessingInstruction [43] => DOMStringExtend [44] => DOMXPath [45] => finfo [46] => GMP [75] => EmptyIterator [77] => ArrayObject [78] => ArrayIterator [79] => RecursiveArrayIterator [80] => SplFileInfo [81] => DirectoryIterator [82] => FilesystemIterator [83] => RecursiveDirectoryIterator [84] => GlobIterator [85] => SplFileObject [86] => SplTempFileObject [87] => SplDoublyLinkedList [88] => SplQueue [89] => SplStack [91] => SplMinHeap [92] => SplMaxHeap [93] => SplPriorityQueue [94] => SplFixedArray [95] => SplObjectStorage [96] => MultipleIterator [98] => PDO [99] => PDOStatement [101] => SessionHandler [103] => Reflection [113] => __PHP_Incomplete_Class [114] => php_user_filter [115] => Directory [116] => SimpleXMLElement [117] => SimpleXMLIterator [119] => Phar [120] => PharData [121] => PharFileInfo [125] => NumberFormatter [126] => Normalizer [127] => Locale [128] => MessageFormatter [129] => IntlDateFormatter [131] => Transliterator [132] => IntlTimeZone [133] => IntlCalendar [134] => IntlGregorianCalendar [135] => Spoofchecker [138] => IntlBreakIterator [139] => IntlRuleBasedBreakIterator [140] => IntlCodePointBreakIterator [142] => UConverter )