3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_filter( get_declared_classes(), function ($class) { $r = new ReflectionClass($class); return $r->isInternal() && $r->isFinal(); }));
Output for 8.3.0 - 8.3.6
array(28) { [0]=> string(16) "InternalIterator" [12]=> string(7) "Closure" [13]=> string(9) "Generator" [15]=> string(13) "WeakReference" [16]=> string(7) "WeakMap" [17]=> string(9) "Attribute" [18]=> string(20) "ReturnTypeWillChange" [19]=> string(22) "AllowDynamicProperties" [20]=> string(18) "SensitiveParameter" [21]=> string(23) "SensitiveParameterValue" [22]=> string(8) "Override" [23]=> string(5) "Fiber" [24]=> string(10) "FiberError" [45]=> string(14) "InflateContext" [46]=> string(14) "DeflateContext" [47]=> string(12) "DOMException" [68]=> string(11) "HashContext" [123]=> string(6) "PDORow" [128]=> string(21) "Random\Engine\Mt19937" [129]=> string(33) "Random\Engine\PcgOneseq128XslRr64" [130]=> string(32) "Random\Engine\Xoshiro256StarStar" [131]=> string(20) "Random\Engine\Secure" [132]=> string(17) "Random\Randomizer" [138]=> string(19) "ReflectionGenerator" [151]=> string(19) "ReflectionReference" [156]=> string(15) "ReflectionFiber" [157]=> string(22) "__PHP_Incomplete_Class" [168]=> string(9) "XMLParser" }
Output for 8.2.0 - 8.2.18
array(27) { [0]=> string(16) "InternalIterator" [12]=> string(7) "Closure" [13]=> string(9) "Generator" [15]=> string(13) "WeakReference" [16]=> string(7) "WeakMap" [17]=> string(9) "Attribute" [18]=> string(20) "ReturnTypeWillChange" [19]=> string(22) "AllowDynamicProperties" [20]=> string(18) "SensitiveParameter" [21]=> string(23) "SensitiveParameterValue" [22]=> string(5) "Fiber" [23]=> string(10) "FiberError" [34]=> string(14) "InflateContext" [35]=> string(14) "DeflateContext" [36]=> string(12) "DOMException" [57]=> string(11) "HashContext" [112]=> string(6) "PDORow" [117]=> string(21) "Random\Engine\Mt19937" [118]=> string(33) "Random\Engine\PcgOneseq128XslRr64" [119]=> string(32) "Random\Engine\Xoshiro256StarStar" [120]=> string(20) "Random\Engine\Secure" [121]=> string(17) "Random\Randomizer" [126]=> string(19) "ReflectionGenerator" [139]=> string(19) "ReflectionReference" [144]=> string(15) "ReflectionFiber" [145]=> string(22) "__PHP_Incomplete_Class" [156]=> string(9) "XMLParser" }
Output for 8.1.0 - 8.1.28
array(19) { [1]=> string(16) "InternalIterator" [13]=> string(7) "Closure" [14]=> string(9) "Generator" [16]=> string(13) "WeakReference" [17]=> string(7) "WeakMap" [18]=> string(9) "Attribute" [19]=> string(20) "ReturnTypeWillChange" [20]=> string(5) "Fiber" [21]=> string(10) "FiberError" [31]=> string(14) "InflateContext" [32]=> string(14) "DeflateContext" [33]=> string(12) "DOMException" [54]=> string(11) "HashContext" [109]=> string(6) "PDORow" [115]=> string(19) "ReflectionGenerator" [128]=> string(19) "ReflectionReference" [133]=> string(15) "ReflectionFiber" [134]=> string(22) "__PHP_Incomplete_Class" [145]=> string(9) "XMLParser" }
Output for 8.0.12 - 8.0.30
array(15) { [1]=> string(16) "InternalIterator" [13]=> string(7) "Closure" [14]=> string(9) "Generator" [16]=> string(13) "WeakReference" [17]=> string(7) "WeakMap" [18]=> string(9) "Attribute" [28]=> string(14) "InflateContext" [29]=> string(14) "DeflateContext" [30]=> string(12) "DOMException" [51]=> string(11) "HashContext" [106]=> string(6) "PDORow" [112]=> string(19) "ReflectionGenerator" [124]=> string(19) "ReflectionReference" [126]=> string(22) "__PHP_Incomplete_Class" [137]=> string(9) "XMLParser" }
Output for 8.0.1 - 8.0.11
array(16) { [1]=> string(16) "InternalIterator" [13]=> string(7) "Closure" [14]=> string(9) "Generator" [16]=> string(13) "WeakReference" [17]=> string(7) "WeakMap" [18]=> string(9) "Attribute" [28]=> string(14) "InflateContext" [29]=> string(14) "DeflateContext" [30]=> string(12) "DOMException" [51]=> string(11) "HashContext" [106]=> string(6) "PDORow" [112]=> string(19) "ReflectionGenerator" [124]=> string(19) "ReflectionReference" [125]=> string(19) "ReflectionAttribute" [126]=> string(22) "__PHP_Incomplete_Class" [137]=> string(9) "XMLParser" }
Output for 8.0.0
array(16) { [1]=> string(16) "InternalIterator" [13]=> string(7) "Closure" [14]=> string(9) "Generator" [16]=> string(13) "WeakReference" [17]=> string(7) "WeakMap" [18]=> string(9) "Attribute" [28]=> string(14) "InflateContext" [29]=> string(14) "DeflateContext" [30]=> string(12) "DOMException" [51]=> string(11) "HashContext" [106]=> string(6) "PDORow" [112]=> string(19) "ReflectionGenerator" [124]=> string(19) "ReflectionReference" [125]=> string(19) "ReflectionAttribute" [126]=> string(22) "__PHP_Incomplete_Class" [137]=> string(9) "XmlParser" }
Output for 7.4.0 - 7.4.33
array(6) { [10]=> string(7) "Closure" [11]=> string(9) "Generator" [13]=> string(13) "WeakReference" [23]=> string(12) "DOMException" [55]=> string(11) "HashContext" [110]=> string(6) "PDORow" }
Output for 7.3.0 - 7.3.33
array(5) { [10]=> string(7) "Closure" [11]=> string(9) "Generator" [22]=> string(12) "DOMException" [54]=> string(11) "HashContext" [109]=> string(6) "PDORow" }
Output for 7.2.0 - 7.2.33
array(5) { [9]=> string(7) "Closure" [10]=> string(9) "Generator" [21]=> string(12) "DOMException" [53]=> string(11) "HashContext" [107]=> string(6) "PDORow" }
Output for 7.1.0 - 7.1.33
array(4) { [9]=> string(7) "Closure" [10]=> string(9) "Generator" [21]=> string(12) "DOMException" [106]=> string(6) "PDORow" }
Output for 7.0.0 - 7.0.33
array(4) { [8]=> string(7) "Closure" [9]=> string(9) "Generator" [20]=> string(12) "DOMException" [105]=> string(6) "PDORow" }
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
array(3) { [3]=> string(7) "Closure" [4]=> string(9) "Generator" [99]=> string(6) "PDORow" }
Output for 5.4.0 - 5.4.45
array(2) { [3]=> string(7) "Closure" [97]=> string(6) "PDORow" }
Output for 5.3.0 - 5.3.29
array(5) { [3]=> string(7) "Closure" [95]=> string(6) "PDORow" [122]=> string(12) "SQLiteResult" [123]=> string(16) "SQLiteUnbuffered" [124]=> string(15) "SQLiteException" }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/vTvid on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/vTvid on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/vTvid on line 4
Process exited with code 255.

preferences:
272.8 ms | 401 KiB | 456 Q