Php Create Tree Structure From Array Python Size Of Int