3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(get_declared_classes()[130]); class A {} print_r(get_declared_classes()[130]);
Output for 7.1.0
PharPhar
Output for 7.0.6 - 7.0.14
XMLReaderXMLReader
Output for 7.0.5
PharFileInfoPharFileInfo
Output for 7.0.0 - 7.0.4
ReflectionFunctionAbstractReflectionFunctionAbstract
Output for hhvm-3.12.0
LazySliceKeyedIteratorLazySliceKeyedIterator
Output for hhvm-3.10.0
mysqli_drivermysqli_driver
Output for 5.6.7 - 5.6.12, 5.6.28
ResourceBundleResourceBundle
Output for 5.5.24 - 5.5.28, 5.5.35, 5.6.21
TransliteratorTransliterator
Output for 5.4.0 - 5.4.32, 5.5.29 - 5.5.30, 5.5.34, 5.6.13 - 5.6.15, 5.6.20
Notice: Undefined offset: 130 in /in/gSp9N on line 2 Notice: Undefined offset: 130 in /in/gSp9N on line 6
Output for 5.6.16 - 5.6.19
ReflectionExtensionReflectionExtension
Output for 5.5.31 - 5.5.33
ReflectionZendExtensionReflectionZendExtension
Output for 5.4.34 - 5.4.45
AA
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/gSp9N on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/gSp9N on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/gSp9N on line 2
Process exited with code 255.