This code fails on some machines:
// Parse error: syntax error, unexpected '[' ...
return json_encode(self::GenerateSomeAssociativeArray($meta_file)["list"]);
but this effectively identical version works on all machines:
$foo = self::GenerateSomeAssociativeArray($meta_file);
return json_encode($foo['list']);
I assume it's a versioning issue, but I'm unable to find information on the difference, probably because I'm unfamiliar with the terminology to search.