3v4l.org

run code in 300+ PHP versions simultaneously
<?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.1.27, 7.2.0 - 7.2.16, 7.3.0 - 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.

preferences:
145.62 ms | 456 KiB | 5 Q