I'm not sure it's possible to get array value from 'variable variable name'. This is my solution
<?php
$varname = 'matches['.$_GET['season_id'].']['.$_GET['competition_id'].']['.$_GET['phase_id'].']['.$_GET['group_id'].']';
$groupmatches = $$varname;
?>
but I got this error:
Notice: Undefined variable: matches[1][1][1][1] in...