Use:
error_log(${$arrayName}[1]);
See the PHP documentation of Variable Variables. It explains that you have to use braces to resolve the ambiguity. It needs to know whether you want to use $$arrayName
as the variable or $arrayName[1]
as the variable.