function execute($order, $callbacks){
foreach($order as $i){
$callbacks[$i]();
}
}
function abcProcs(){
foreach(func_get_args() as $f){
eval("function $f() { echo '$f'; };");
}
}
abcProcs("A","B","C");
execute([0,0,1,2,1,2], ['A','B','C']);
edit: execute([0,0,1,2,1,2], [A,B,C]);
Im not familiar with react, and im not quite sure what you mean by that, but elm html is based on virtual-dom...
http://elm-lang.org/blog/blazing-fast-html