The way to avoid eval() usage when you receive data in PHP code
There is old known situation. We have script or service which gives us PHP arrays packed into strings as PHP code.(In var_export() format). Or this is historically, something in the system gives us arrays in PHP code format.
For example your script receives something like:
$test = "array('gmt' => 'Europe/Moscow',
'sudia3' => '',
'sudia1' => '',
'sudia2' => '',
'pos1' => '4-2-3-1',
'color1' => '#f00',
'pos2' => '4-4-1-1',
'color2' => '#000',
);";