Just wait until you meet dynamic dynamic variables, nothing more elegant than that...
$x=0;$a='x';$b='a'; echo $$$b; $x=0;$a='x';$b='a'; echo $$$b; foreach(['a' => closureA, 'b' => closureB, 'c' => closureC] as $name => $toApply) {
$myObject->${convertNameToFieldName($name)} = $toApply($something);
} $x = 'y';
$y = 'x';
echo $$$$$$$$$$$$$y;
I've tested with 1500 `$` and it still works :)