3v4l.org

run code in 300+ PHP versions simultaneously
<?php $modelPathDirectories [ JPATH_ADMINISTRATOR, 'components', 'com_' . $feature, 'models', ]; JModelLegacy::addIncludePath(implode(DIRECTORY_SEPARATOR, $modelPathDirectories);
Output for 7.1.25 - 7.1.31, 7.2.0 - 7.2.21, 7.3.0 - 7.3.8
Parse error: syntax error, unexpected ',', expecting ']' in /in/cIrLP on line 3
Process exited with code 255.

preferences:
38.51 ms | 409 KiB | 5 Q