The shortened array syntax was introduced in php 5.4 (http://docs.php.net/manual/en/language.types.array.php). Since Slim is compatible with php 5.3 or higher I would replace that line with array(new $matches[1], $matches[2]);