3v4l.org

run code in 200+ php & hhvm versions
<?php private function getXMLVersion() { $path = JPATH_PLUGINS . '/system/my_plugin_name/my_plugin_name.xml'; $xml = JApplicationHelper::parseXMLInstallFile($path); return isset($xml['version']) ? trim($xml['version']) : ''; }
Output for 7.1.25 - 7.3.3
Parse error: syntax error, unexpected 'private' (T_PRIVATE), expecting end of file in /in/jVmZl on line 2
Process exited with code 255.